aboutsummaryrefslogtreecommitdiff
path: root/bash
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2013-09-07 21:48:10 +1200
committerTom Ryder <tom@sanctum.geek.nz>2013-09-07 21:48:10 +1200
commit062658baf1f0bd838f94dcc6e43407bef3ae3988 (patch)
tree9e808c45b67cf84d0882e0ec8235e95f4ea82711 /bash
parentRemove unnecessary quotes in comment (diff)
downloaddotfiles-062658baf1f0bd838f94dcc6e43407bef3ae3988.tar.gz
dotfiles-062658baf1f0bd838f94dcc6e43407bef3ae3988.zip
Test explicitly for 256 colors
Diffstat (limited to 'bash')
-rw-r--r--bash/bashrc.d/prompt.bash2
1 files changed, 1 insertions, 1 deletions
diff --git a/bash/bashrc.d/prompt.bash b/bash/bashrc.d/prompt.bash
index 5b3e0126..0009fe94 100644
--- a/bash/bashrc.d/prompt.bash
+++ b/bash/bashrc.d/prompt.bash
@@ -16,7 +16,7 @@ prompt() {
local format
# Check if we have non-bold bright green available
- if ((colors > 8)); then
+ if ((colors == 256)); then
format=$(tput setaf 10 0 0)
# If we have only eight colors, use bold green to make it bright