diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2013-08-25 03:38:40 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2013-08-25 03:38:40 +1200 |
commit | f9720a5c79c2c2414d377097dad65a90bd1661e6 (patch) | |
tree | 49d5b53043dd0e62c3e3ebab4317e9fc904ef7f2 /bash | |
parent | Remove unneeded $ from arithmetic expansion (diff) | |
download | dotfiles-f9720a5c79c2c2414d377097dad65a90bd1661e6.tar.gz dotfiles-f9720a5c79c2c2414d377097dad65a90bd1661e6.zip |
Rearrange prompt declarations so ret is first
Otherwise it gets the exit value of the previous declaration
Diffstat (limited to 'bash')
-rw-r--r-- | bash/bashrc.d/prompt.bash | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bash/bashrc.d/prompt.bash b/bash/bashrc.d/prompt.bash index f4480508..6d273185 100644 --- a/bash/bashrc.d/prompt.bash +++ b/bash/bashrc.d/prompt.bash @@ -2,8 +2,8 @@ prompt() { # Variables for use only within this function - local -a state=() local -i ret=$? colors=$(tput colors) + local -a state=() local color reset branch info url root # What's done next depends on the first argument to the function |