fix: Fix PROMPT_COMMAND management

This commit is contained in:
2024-01-27 19:04:33 +01:00
parent fe6642402b
commit 66c57a0a51
3 changed files with 19 additions and 1 deletions

View File

@ -13,7 +13,7 @@ if [ "${POWERLINE}" = "powerline-go" ]; then
PS1=$($POWERLINE -jobs "$(jobs -p | wc -l)" -error $? -modules "ssh,host,wsl,user,cwd,direnv,venv,perms,git,jobs,exit,root" -modules-right "docker,docker-context,kube,terraform-workspace,termtitle" -newline)
}
if [ "$TERM" != "linux" ]; then PROMPT_COMMAND="$PROMPT_COMMAND; _update_ps1"; fi
if [ "$TERM" != "linux" ]; then _prompt_command_add "_update_ps1" ; fi
elif [ "${POWERLINE}" = "powerline" ]; then