Make ls/ll aliases linux friendly

This commit is contained in:
Ian Ker-Seymer 2014-10-24 13:29:07 -06:00
parent b8a90b09d1
commit ca5cc939a1

View File

@ -3,6 +3,15 @@
# Don't change. The following determines where YADR is installed.
yadr=$HOME/.yadr
# Get operating system
platform='unknown'
unamestr=$(uname)
if [[ $unamestr == 'Linux' ]]; then
platform='linux'
elif [[ $unamestr == 'Darwin' ]]; then
platform='darwin'
fi
# YADR support
alias yav='yadr vim-add-plugin'
alias ydv='yadr vim-delete-plugin'
@ -21,10 +30,16 @@ alias cls='clear;ls'
# Show human friendly numbers and colors
alias df='df -h'
alias ll='ls -alGh'
alias ls='ls -Gh'
alias du='du -h -d 2'
if [[ $platform == 'linux' ]]; then
alias ll='ls -alh --color=auto'
alias ls='ls --color=auto'
elif [[ $platform == 'darwin' ]]; then
alias ll='ls -alGh'
alias ls='ls -Gh'
fi
# show me files matching "ls grep"
alias lsg='ll | grep'