go back to powerline-go
parent
979057da70
commit
cc6d21b63c
4
.bashrc
4
.bashrc
|
@ -60,9 +60,9 @@ PROMPT_COMMAND="history -a"
|
||||||
shopt -s histappend
|
shopt -s histappend
|
||||||
|
|
||||||
function _update_ps1() {
|
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"
|
PROMPT_COMMAND="_update_ps1; $PROMPT_COMMAND"
|
||||||
else
|
else
|
||||||
PS1='[\[\033[01;32m\]\u@\h\[\033[00m\] \[\033[01;34m\]\w$(__git_ps1 " (%s)")\[\033[00m\]]\$ '
|
PS1='[\[\033[01;32m\]\u@\h\[\033[00m\] \[\033[01;34m\]\w$(__git_ps1 " (%s)")\[\033[00m\]]\$ '
|
||||||
|
|
Reference in New Issue