summaryrefslogtreecommitdiff
path: root/.bash-powerline.sh
diff options
context:
space:
mode:
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