Table des matières

Bashrc

Surcharge de ''cd''

# cd
cd() {
  if [ -z "$1" ] ; then
    builtin cd;
  else
    builtin cd "$1";
  fi
  ls -l;
}

Prompt

# prompt
PS1=$'[\[\E[31;1m\]`pwd`\[\E[m\]]`val=${PIPESTATUS[0]};[ "$val" != "0" ] && echo -ne "(\[\E[33;1m\]$val\[\E[m\])";`#'