From 8bff84e4ce439aa082e880b400ab9c433318f0bd Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Mon, 5 Aug 2013 01:37:26 +1200 Subject: Avoid using builtin names for promptt function arg --- bash/bashrc.d/prompt.bash | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bash/bashrc.d/prompt.bash b/bash/bashrc.d/prompt.bash index 598c1bd1..7120deb7 100644 --- a/bash/bashrc.d/prompt.bash +++ b/bash/bashrc.d/prompt.bash @@ -11,7 +11,7 @@ prompt() { # Turn complex, colored prompt on on) PROMPT_COMMAND='history -a' - PS1='\[\a\][\u@\h:\w]$(prompt return)$(prompt vcs)$(prompt jobs)\$' + PS1='\[\a\][\u@\h:\w]$(prompt ret)$(prompt vcs)$(prompt job)\$' # Check if we have non-bold bright green available if [[ "$(tput colors)" -gt 8 ]]; then @@ -143,14 +143,14 @@ prompt() { ;; # Show the return status of the last command in angle brackets - return) + ret) if [[ $ret -ne 0 ]]; then printf '<%d>' "$ret" fi ;; # Show the count of background jobs in curly brackets - jobs) + job) if [[ -n "$(jobs)" ]]; then printf '{%d}' "$(jobs | sed -n '$=')" fi -- cgit v1.2.3