diff options
author | Aaron LI <aaronly.me@gmail.com> | 2016-05-08 16:20:22 +0800 |
---|---|---|
committer | Aaron LI <aaronly.me@gmail.com> | 2016-05-08 16:20:22 +0800 |
commit | 10a00405096219fb1170f6ac886783f7e1c6d2d4 (patch) | |
tree | c451f3793be224ab7d307a345597d7294cf4d9bd | |
parent | 7cfe2369cad84b1d4dbcaca7396515cf1adfeae8 (diff) | |
download | dotfiles-10a00405096219fb1170f6ac886783f7e1c6d2d4.tar.bz2 |
_zsh: fix "ls" alias for BSD
-rw-r--r-- | _zsh/90-aliases.zsh | 6 |
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' |