diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2013-08-05 01:37:26 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2013-08-05 01:37:26 +1200 |
commit | 8bff84e4ce439aa082e880b400ab9c433318f0bd (patch) | |
tree | f301f0294ad3878cbc0b905ab573c27f77434eaf /bash/bashrc.d/prompt.bash | |
parent | Don't check for tput (diff) | |
download | dotfiles-8bff84e4ce439aa082e880b400ab9c433318f0bd.tar.gz dotfiles-8bff84e4ce439aa082e880b400ab9c433318f0bd.zip |
Avoid using builtin names for promptt function arg
Diffstat (limited to 'bash/bashrc.d/prompt.bash')
-rw-r--r-- | bash/bashrc.d/prompt.bash | 6 |
1 files 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 |