ls fixes, removed redundant tree alias

pull/561/head
Reto Haeberli 2015-09-08 19:51:19 +02:00
parent b8393252db
commit 245faefd1b
1 changed files with 2 additions and 4 deletions

View File

@ -11,7 +11,7 @@ case "$OSTYPE" in
# Set Linux color option
LS_COLOR_OPTION="--color=auto"
;;
darwin*)
darwin*)
# Set BSD color optio
LS_COLOR_OPTION="-G"
#Check if coreutils version of if exists
@ -19,7 +19,7 @@ case "$OSTYPE" in
# Check if coreutils path is in $PATH
if [[ ":$PATH:" == *":/usr/local/opt/coreutils/libexec/gnubin:"* ]]; then
# Set Linux color option
LS_COLOR_OPTION="--color"
LS_COLOR_OPTION="--color=auto"
fi
fi
;;
@ -44,8 +44,6 @@ alias lm="ll |more" # Pipe through "more"
alias lr="ll -R" # Recursive ls.
alias la="ll -A" # Show hidden files.
alias tree="tree -C" # Nice alternative to "recursive ls" ...
alias sl="ls"
alias l1="ls -1 --group-directories-first $LS_COLOR_OPTION"