go back to powerline-go

master
Andrew Coleman 2020-12-09 09:19:01 -05:00
parent 979057da70
commit cc6d21b63c
1 changed files with 2 additions and 2 deletions

View File

@ -60,9 +60,9 @@ PROMPT_COMMAND="history -a"
shopt -s histappend
function _update_ps1() {
PS1="$(powerline-rs --modules user,host,ssh,cwd,git,gitstage,root --shell bash $?)"
PS1="$(powerline-go -colorize-hostname -static-prompt-indicator -max-width 100 -modules "user,host,ssh,cwd,perms,git,jobs,exit" -modules-right "dotenv,kube" -newline -error $?)"
}
if [[ $(which powerline-rs 2>/dev/null) && "$TERM" != "linux" && "$TERM_PROGRAM" != "vscode" ]]; then
if [[ $(which powerline-go 2>/dev/null) && "$TERM" != "linux" && "$TERM_PROGRAM" != "vscode" ]]; then
PROMPT_COMMAND="_update_ps1; $PROMPT_COMMAND"
else
PS1='[\[\033[01;32m\]\u@\h\[\033[00m\] \[\033[01;34m\]\w$(__git_ps1 " (%s)")\[\033[00m\]]\$ '