Created
November 14, 2019 09:19
-
-
Save yesseecity/f31f9f50b22bd06ec6e85603f1595961 to your computer and use it in GitHub Desktop.
My bash style in terminal
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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