Skip to content

Instantly share code, notes, and snippets.

@yesseecity
Created November 14, 2019 09:19
Show Gist options
  • Save yesseecity/f31f9f50b22bd06ec6e85603f1595961 to your computer and use it in GitHub Desktop.
Save yesseecity/f31f9f50b22bd06ec6e85603f1595961 to your computer and use it in GitHub Desktop.
My bash style in terminal
prompt="\n[\[\033[0;1;33m\]\h:\[\033[0;1;32m\]${YROOT}\[\033[0;1;36m\]\w\[\e[0;0m\]]\n\[\033[0;1;32m\]\u\[\033[0;1;31m\][\l]\[\033[0;0m\]\j${VIMENV}\$ "
case $TERM in
rxvt*|xterm*)
export PS1="\[\033]0;\H${YROOT}:\w\007\]$prompt"
;;
screen*)
#export PS1="\[\033k\H:\w\033\134\]$prompt"
export PS1=$prompt
;;
linux|eterm)
export PS1=$prompt
;;
*)
export PS1="\u@\h:\w:\j\$ "
;;
esac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment