Commit d6834d42 authored by Valentin Samir's avatar Valentin Samir

[bash_aliases] colored aliases only if dircolors is executables

parent 7f7c09cf
...@@ -22,10 +22,12 @@ alias cp='cp -i' ...@@ -22,10 +22,12 @@ alias cp='cp -i'
alias df='df -h' alias df='df -h'
# Affichage des couleurs automatiques # Affichage des couleurs automatiques
alias grep='grep --color=auto' if [ -x /usr/bin/dircolors ]; then
alias egrep='egrep --color=auto' alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto' alias egrep='egrep --color=auto'
alias ls='ls --color=auto' alias fgrep='fgrep --color=auto'
alias ls='ls --color=auto'
# Alias ls # Alias ls
alias ll='ls -alFh' alias ll='ls -alFh'
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment