feat(rc): Improve powerline prompt

This commit is contained in:
Xavier Logerais 2023-08-27 16:31:17 +02:00
parent c8442dabc0
commit c04d8876a3

View File

@ -10,7 +10,7 @@ if [ "${POWERLINE}" = "powerline-go" ]; then
echo "Using $POWERLINE"
function _update_ps1() {
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" -newline)
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