feat: improve config for powerline, mcfly and (n)vim

This commit is contained in:
2022-05-21 02:41:24 +02:00
parent c58348a679
commit 2ecb4c53fa
5 changed files with 20 additions and 63 deletions

View File

@ -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