An Adaptive Prompt for Bash or Zsh