更改GCP Cloudshell的提示符

#查看配置
echo $PS1

#修改配置: 删除@cloushell和\w
export PS1='\[\e]0;${DEVSHELL_PROJECT_ID:-Cloud Shell}\a\]\u:\[\033[1;34m\]$([[ -n $DEVSHELL_PROJECT_ID ]] && printf " \[\033[1;33m\](%s)" ${DEVSHELL_PROJECT_ID} )\[\033[00m\]$ \[\033k$([[ -n $DEVSHELL_PROJECT_ID ]] && printf "(%s)" ${DEVSHELL_PROJECT_ID} || printf "cloudshell")\033\\\]'

 

posted @ 2020-05-19 16:44  衡子  阅读(185)  评论(0编辑  收藏  举报