From 0e46f492cf1443c75293fdd615879fe623a3300b Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Date: Sun, 16 Feb 2014 22:09:35 +0100 Subject: bash: on MacOS X, we don't use the default ls command. Instead we use the GNU ls command. --- bashrc | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/bashrc b/bashrc index 5da0304..24b0b9a 100644 --- a/bashrc +++ b/bashrc @@ -2,9 +2,13 @@ export LC_ALL=en_US.UTF-8 # beautifying ls command -alias ls='ls --group-directories-first --time-style=+"%d.%m.%Y %H:%M" --color=auto -F' -alias ll='ls -l --group-directories-first --time-style=+"%d.%m.%Y %H:%M" --color=auto -F' -alias la='ls -la --group-directories-first --time-style=+"%d.%m.%Y %H:%M" --color=auto -F' +lsc="ls" +if [ `uname` == "Darwin" ]; then + lsc="gls" +fi +alias ls='$lsc --group-directories-first --time-style=+"%d.%m.%Y %H:%M" --color=auto -F' +alias ll='$lsc -l --group-directories-first --time-style=+"%d.%m.%Y %H:%M" --color=auto -F' +alias la='$lsc -la --group-directories-first --time-style=+"%d.%m.%Y %H:%M" --color=auto -F' # Alias related to cd alias ..='cd ..' -- cgit v1.2.3