diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2015-06-06 14:29:12 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2015-06-06 14:29:12 +1200 |
commit | 415f6701c246363a463f828d24a86cb3e13488b6 (patch) | |
tree | 143f1d9b0d2944a14b513c27acdb4dccd0e0f9a3 /bash/bashrc.d/prompt.bash | |
parent | Use magic-space expansion for !hist (diff) | |
download | dotfiles-415f6701c246363a463f828d24a86cb3e13488b6.tar.gz dotfiles-415f6701c246363a463f828d24a86cb3e13488b6.zip |
Avoid command substitution inline declaration
Diffstat (limited to 'bash/bashrc.d/prompt.bash')
-rw-r--r-- | bash/bashrc.d/prompt.bash | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/bash/bashrc.d/prompt.bash b/bash/bashrc.d/prompt.bash index 27cb9dd5..f4a1b718 100644 --- a/bash/bashrc.d/prompt.bash +++ b/bash/bashrc.d/prompt.bash @@ -22,10 +22,12 @@ prompt() { fi # Count available colors, reset, and format (decided shortly) - local -i colors=$( { + local -i colors + colors=$( { tput Co || tput colors } 2>/dev/null ) - local reset=$( { + local reset + reset=$( { tput me || tput sgr0 } 2>/dev/null ) local format |