更改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\\\]

 

更改GCP Cloudshell的提示符

上一篇:linux grep 命令常见用法


下一篇:Intellij idea兼容 Eclipse 快捷键 (仅个人学习回顾,防止遗忘)