switch to powerline-go, it appears to be much faster
parent
46cafbf01e
commit
f94b51f313
4
.bashrc
4
.bashrc
|
@ -27,9 +27,9 @@ HISTTIMEFORMAT="%Y-%m-%d %H:%M:%S "
|
||||||
for k in $HOME/bin/*.bash ; do . $k ; done
|
for k in $HOME/bin/*.bash ; do . $k ; done
|
||||||
|
|
||||||
function _update_ps1() {
|
function _update_ps1() {
|
||||||
PS1="$(powerline-shell $?)"
|
PS1="$(powerline-go -error $?)"
|
||||||
}
|
}
|
||||||
if [[ $(which powerline-shell 2>/dev/null) && "$TERM" != "linux" && -z $TMUX ]]; then
|
if [[ $(which powerline-go 2>/dev/null) && "$TERM" != "linux" ]]; 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