From 10a00405096219fb1170f6ac886783f7e1c6d2d4 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Sun, 8 May 2016 16:20:22 +0800 Subject: _zsh: fix "ls" alias for BSD --- _zsh/90-aliases.zsh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to '_zsh') 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' -- cgit v1.2.2