From ac8ff6b89fd16b6ce624cb996d96ae6941494d69 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Tue, 15 Mar 2016 13:31:11 +1300 Subject: Protect PS1 variable expansions --- bash/bashrc.d/prompt.bash | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bash') 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 -- cgit v1.2.3