feat: improve config for powerline, mcfly and (n)vim
This commit is contained in:
@ -2,10 +2,11 @@
|
||||
|
||||
# Customize the prompt
|
||||
|
||||
if (which powerline &> /dev/null); then
|
||||
POWERLINE=$(which powerline || which powerline-go) &> /dev/null
|
||||
if [ -x "$POWERLINE" ]; then
|
||||
|
||||
function _update_ps1() {
|
||||
PS1="$(powerline -error $? -jobs $(jobs -p | wc -l))"
|
||||
PS1="$($POWERLINE -error $? -jobs $(jobs -p | wc -l))"
|
||||
|
||||
# Uncomment the following line to automatically clear errors after showing
|
||||
# them once. This not only clears the error for powerline-go, but also for
|
||||
|
Reference in New Issue
Block a user