diff options
-rw-r--r-- | bash/bashrc.d/prompt.bash | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bash/bashrc.d/prompt.bash b/bash/bashrc.d/prompt.bash index 4c82cec0..3eed8b24 100644 --- a/bash/bashrc.d/prompt.bash +++ b/bash/bashrc.d/prompt.bash @@ -12,8 +12,11 @@ prompt() { # Turn complex, colored PS1 and debugging PS4 prompts on on) + # Declare the PROMPT_RETURN variable as an integer + declare -i PROMPT_RETURN + # Set up pre-prompt command - PROMPT_COMMAND='declare -i PROMPT_RETURN=$? ; history -a' + PROMPT_COMMAND='PROMPT_RETURN=$? ; history -a' # Set up prompt, including optional PROMPT_PREFIX and PROMPT_SUFFIX # variables |