mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-20 03:02:29 +01:00
Fixed ls alias issue for Mac OSX while maintaining support for Linux distros
This commit is contained in:
parent
3fafd4062b
commit
c2d95f8fe4
1 changed files with 5 additions and 1 deletions
|
|
@ -3,7 +3,11 @@
|
||||||
#
|
#
|
||||||
|
|
||||||
# ls, the common ones I use a lot shortened for rapid fire usage
|
# ls, the common ones I use a lot shortened for rapid fire usage
|
||||||
alias ls='ls -G' #I like color
|
if [[ $(uname -s) == 'Darwin' ]]; then
|
||||||
|
alias ls='ls -G' # Mac OSX support
|
||||||
|
else
|
||||||
|
alias ls='ls --color' #I like color
|
||||||
|
fi
|
||||||
alias l='ls -lFh' #size,show type,human readable
|
alias l='ls -lFh' #size,show type,human readable
|
||||||
alias la='ls -lAFh' #long list,show almost all,show type,human readable
|
alias la='ls -lAFh' #long list,show almost all,show type,human readable
|
||||||
alias lr='ls -tRFh' #sorted by date,recursive,show type,human readable
|
alias lr='ls -tRFh' #sorted by date,recursive,show type,human readable
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue