📜  hanselman pretty prompt - 无论代码示例

📅  最后修改于: 2022-03-11 14:57:44.002000             🧑  作者: Mango

代码示例1
GOPATH=$HOME/go
function _update_ps1() {
    PS1="$($GOPATH/bin/powerline-go -error $?)"
}
if [ "$TERM" != "linux" ] && [ -f "$GOPATH/bin/powerline-go" ]; then
    PROMPT_COMMAND="_update_ps1; $PROMPT_COMMAND"
fi