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
12
.bashrc
12
.bashrc
|
@ -1,7 +1,13 @@
|
||||||
# Common parameters
|
# Common parameters
|
||||||
alias ls='ls -v --color=auto'
|
if [ "$OSTYPE" == "linux-gnu" ]; then
|
||||||
alias ll='ls -val'
|
alias ls='ls -v --color=auto'
|
||||||
alias grep='grep --color'
|
alias ll='ls -lav'
|
||||||
|
alias grep='grep --color'
|
||||||
|
else
|
||||||
|
alias ls='ls'
|
||||||
|
alias ll='ls -la'
|
||||||
|
alias grep='grep'
|
||||||
|
fi
|
||||||
|
|
||||||
# Case insensitive matching
|
# Case insensitive matching
|
||||||
shopt -s nocaseglob
|
shopt -s nocaseglob
|
||||||
|
|
Loading…
Reference in a new issue