aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-03-15 13:31:11 +1300
committerTom Ryder <tom@sanctum.geek.nz>2016-03-15 13:31:11 +1300
commitac8ff6b89fd16b6ce624cb996d96ae6941494d69 (patch)
tree20c3e14bb1619b3e322350c0ebf266352a8b9a9f
parentRemove monitor-activity from tmux config (diff)
downloaddotfiles-ac8ff6b89fd16b6ce624cb996d96ae6941494d69.tar.gz
dotfiles-ac8ff6b89fd16b6ce624cb996d96ae6941494d69.zip
Protect PS1 variable expansions
-rw-r--r--bash/bashrc.d/prompt.bash4
1 files changed, 2 insertions, 2 deletions
diff --git a/bash/bashrc.d/prompt.bash b/bash/bashrc.d/prompt.bash
index 4d2afc09..df32b9d8 100644
--- a/bash/bashrc.d/prompt.bash
+++ b/bash/bashrc.d/prompt.bash
@@ -21,8 +21,8 @@ prompt() {
PS1=$PS1'$(prompt job)'
PS1=$PS1'$(prompt vcs)'
PS1=$PS1'$(prompt ret)'
- PS1='$PROMPT_PREFIX'$PS1
- PS1=$PS1'$PROMPT_SUFFIX'
+ PS1='${PROMPT_PREFIX}'$PS1
+ PS1=$PS1'${PROMPT_SUFFIX}'
PS1=$PS1'\$'
# If Bash 4.0 is available, trim very long paths in prompt