aboutsummaryrefslogtreecommitdiffstats
path: root/_zsh/90-aliases.zsh
diff options
context:
space:
mode:
authorAaron LI <aaronly.me@gmail.com>2016-05-08 16:20:22 +0800
committerAaron LI <aaronly.me@gmail.com>2016-05-08 16:20:22 +0800
commit10a00405096219fb1170f6ac886783f7e1c6d2d4 (patch)
treec451f3793be224ab7d307a345597d7294cf4d9bd /_zsh/90-aliases.zsh
parent7cfe2369cad84b1d4dbcaca7396515cf1adfeae8 (diff)
downloaddotfiles-10a00405096219fb1170f6ac886783f7e1c6d2d4.tar.bz2
_zsh: fix "ls" alias for BSD
Diffstat (limited to '_zsh/90-aliases.zsh')
-rw-r--r--_zsh/90-aliases.zsh6
1 files changed, 5 insertions, 1 deletions
diff --git a/_zsh/90-aliases.zsh b/_zsh/90-aliases.zsh
index 22e2486..7f41bc4 100644
--- a/_zsh/90-aliases.zsh
+++ b/_zsh/90-aliases.zsh
@@ -12,7 +12,11 @@ alias d='dirs -v | head -10'
alias po=popd
alias pu=pushd
-alias ls='ls --color=auto'
+if [[ -n "${IS_LINUX}" ]]; then
+ alias ls='ls --color=auto'
+elif [[ -n "${IS_BSD}" ]]; then
+ alias ls='ls -G'
+fi
alias l='ls -lah'
alias la='ls -lAh'
alias ll='ls -lh'