Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
33 lines (29 sloc) 2.52 KB
# Use gls if we've got it (ls from gnu coreutils)
if [[ -x `which gls` ]]; then
alias rls=`which ls`
alias ls='gls -GFh --color=auto --hide="*.pyc"'
export LS_COLORS='ow=30;42';
elif [[ $(uname) == 'FreeBSD' || $OSTYPE[1,6] == "darwin" ]]; then
export CLICOLOR="yes"
export LSCOLORS='ExfxcxdxbxEgEdabagacad'
elif [[ -n `ls --color` && $? == 0 ]]; then
# Check if ls can handle the --color option. If it can it's probably gnu.
alias ls='ls --color=auto'
export LS_COLORS='no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.jpg=0;32:*.jpe=0;32:*.jpeg=0;32:*.gif=0;32:*.bmp=0;32:*.pbm=0;32:*.pgm=0;32:*.ppm=0;32:*.tga=0;32:*.xbm=0;32:*.xpm=0;32:*.tif=0;32:*.tiff=0;32:*.png=0;32:*.eps=0;32:*.mpg=0;32:*.mpeg=0;32:*.avi=0;32:*.fli=0;32:*.gl=0;32:*.dl=0;32:*.xcf=0;32:*.xwd=0;32:*.ogg=01;35:*.mp3=01;35:*.wav=01;35:*.flac=01;35:*.m4a=01;35:*.mpc=01;35:*.o=01;33:*.c=01;35:*.m=01;35:*.h=01;35:*.rb=01;35:*.pl=01;35:*.py=01;35:*.sh=01;35:*.m=01;35:*akefile=0;35:*tags=01;32:*~=01;30:*.swp=01;30:*README=01;31:*README.*=01;31:*readme=00;31:*.tex=01;31:*.htm=01;31:*.html=01;31:*.pdf=00;31:*.PDF=00;31:*.ps=00;31:*.PS=00;31:*.png=00;31:*.PNG=00;31:*.jpg=00;31:*.JPG=00;31:*.jpeg=00;31:*.JPEG=00;31:';
# -G : Enable colorized output
# -F : Display a slash (`/') immediately after each pathname that is a directory, an asterisk (`*') after each that is executable, an at sign (`@') after each symbolic link, an equals sign (`=') after each socket, a percent sign (`%') after each whiteout, and a vertical bar (`|') after each that is a FIFO.
# -h : When used with the -l option, use unit suffixes: Byte, Kilobyte, Megabyte, Gigabyte, Terabyte and Petabyte in order to reduce the number of digits to three or less using base 2 for sizes.
# -a : Include directory entries whose names begin with a dot (.).
# -l : List in long format.
# -e : Print the Access Control List (ACL) associated with the file, if present, in long (-l) output.
# -t : Sort by time modified (most recently modified first) before sorting the operands by lexicographical order.
# -t : Reverse the order of the sort to get reverse lexicographical order or the oldest entries first (or largest files last, if combined with sort by size
alias l='ls'
#alias ls='ls -GFh'
alias la='ls -a'
alias ll='ls -l'
#alias le='ll -e'
#alias lla='ls -la'
#alias lm='ls -la | more'
alias lt='ls -ltr'