Only use -v and --color on Linux systems.
This commit is contained in:
parent
9e8d716be2
commit
29cd701772
1 changed files with 9 additions and 3 deletions
8
.bashrc
8
.bashrc
|
@ -1,7 +1,13 @@
|
|||
# Common parameters
|
||||
if [ "$OSTYPE" == "linux-gnu" ]; then
|
||||
alias ls='ls -v --color=auto'
|
||||
alias ll='ls -val'
|
||||
alias ll='ls -lav'
|
||||
alias grep='grep --color'
|
||||
else
|
||||
alias ls='ls'
|
||||
alias ll='ls -la'
|
||||
alias grep='grep'
|
||||
fi
|
||||
|
||||
# Case insensitive matching
|
||||
shopt -s nocaseglob
|
||||
|
|
Loading…
Reference in a new issue