#我自己使用的base_profile配色 , 很漂亮
D=$'\e[37;40m'
PINK=$'\e[35;40m'
GREEN=$'\e[32;40m'
ORANGE=$'\e[33;40m'
hg_ps1() {
hg prompt "{${D} on ${PINK}{branch}}{${D} at ${ORANGE}{bookmark}}{${GREEN}{status}}" 2> /dev/null}
export PS1='\n${PINK}\u ${D}at ${ORANGE}\h ${D}in ${GREEN}\w$(hg_ps1)\
${D}\n$ '
# for root
# export PS1='\n${PINK}\u ${D}at ${ORANGE}\h ${D}in ${GREEN}\w$(hg_ps1)\${D}\n# '
alias ll='ls -al -G'
alias ls='ls -G'
alias vi='vim'
alias goxxx='ssh -p 22 XXX@10.12.0.5';
alias goweb='function __goweb() { ssh -p 22 -i ~/.ssh/id_rsa www@$1;unset -f __goweb; }; __goweb';
转载于:https://my.oschina.net/mmfei/blog/1548487