summaryrefslogtreecommitdiff
path: root/.bash-powerline.sh
diff options
context:
space:
mode:
authorMarc Vertes <mvertes@free.fr>2025-01-21 14:17:42 +0100
committerMarc Vertes <mvertes@free.fr>2025-01-21 14:17:42 +0100
commitc22b0babed426af824b5afe668f3783bb0b757b6 (patch)
tree17b3a35c9b2668bbe6eb61e2f4ef1417b1456391 /.bash-powerline.sh
parentbbf794e666cb6eb5171d7a0df796c1b4afdca148 (diff)
fixupalpine2
Diffstat (limited to '.bash-powerline.sh')
-rw-r--r--.bash-powerline.sh5
1 files changed, 2 insertions, 3 deletions
diff --git a/.bash-powerline.sh b/.bash-powerline.sh
index c8f126a..96fed32 100644
--- a/.bash-powerline.sh
+++ b/.bash-powerline.sh
@@ -72,8 +72,7 @@ __powerline() {
local symbol="$COLOR_FAILURE$PS_SYMBOL $RESET"
fi
- local cwd="$COLOR_CWD\w$RESET"
- # local cwd="\e]0;\W\a$COLOR_CWD\w$RESET"
+ local wd="$COLOR_CWD\w$RESET"
# Bash by default expands the content of PS1 unless promptvars is disabled.
# We must use another layer of reference to prevent expanding any user
# provided strings, which would cause security issues.
@@ -87,7 +86,7 @@ __powerline() {
local git="$COLOR_GIT$(__git_info)$RESET"
fi
- [ "$SSH_TTY" ] && PS1=": $host:$cwd$git$symbol" || PS1=": $cwd$git$symbol"
+ [ "$SSH_TTY" ] && PS1=": $host:$wd$git$symbol" || PS1=": $wd$git$symbol"
}
PROMPT_DIRTRIM=1