Skip to content

Commit

Permalink
Fix ls color output on macOS
Browse files Browse the repository at this point in the history
On macOS we're now using GNU ls, so the --color=auto flag is the same as
on Linux.
  • Loading branch information
kerrickstaley committed Dec 30, 2023
1 parent a13cf27 commit f1f6dbb
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions .zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -155,13 +155,7 @@ if runningon macos; then
fi

# Show colors in ls output.
if runningon linux; then
alias ls='ls --color=auto'
fi

if runningon macos; then
alias ls='ls -G'
fi
alias ls='ls --color=auto'

# Add JDK binaries to path on Linux and set JAVA_HOME
if runningon linux; then
Expand Down

0 comments on commit f1f6dbb

Please sign in to comment.