From c22b0babed426af824b5afe668f3783bb0b757b6 Mon Sep 17 00:00:00 2001 From: Marc Vertes Date: Tue, 21 Jan 2025 14:17:42 +0100 Subject: fixup --- .bash-powerline.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to '.bash-powerline.sh') 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 -- cgit v1.2.3