Update ls alias for os x and zsh

This commit is contained in:
2016-02-03 10:11:18 -05:00
parent 9ef1f4654c
commit e39cf061f5

10
.zshrc
View File

@@ -28,7 +28,6 @@ alias fuck='sudo $(history -p \!\!)'
alias grep='grep --color=auto' alias grep='grep --color=auto'
alias hidden='ls -a | grep "^\..*"' alias hidden='ls -a | grep "^\..*"'
alias killz='killall -9 ' alias killz='killall -9 '
alias ls="ls --color=always"
alias m='ncmpcpp' alias m='ncmpcpp'
alias math='rlwrap MathKernel' alias math='rlwrap MathKernel'
alias ocaml='rlwrap ocaml' alias ocaml='rlwrap ocaml'
@@ -39,6 +38,15 @@ alias sml='rlwrap sml'
alias style='clang-format-3.5 -style=Google' alias style='clang-format-3.5 -style=Google'
alias telnet='rlwrap telnet' alias telnet='rlwrap telnet'
# Enable color support of ls and also add handy aliases
# Mac OS doesn't support --color flag for ls, needs -G instead.
if [[ `uname` = "Darwin" ]]
then
alias ls='ls -G'
else
alias ls='ls --color=auto'
fi
# Turn off the ability for other people to message your terminal using wall # Turn off the ability for other people to message your terminal using wall
mesg n mesg n