Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
1 files changed, 6 insertions, 2 deletions
-rw-r--r--.bashrc8
diff --git a/.bashrc b/.bashrc
index fdd9360..86967cc 100644
--- a/.bashrc
+++ b/.bashrc
@@ -36,12 +36,16 @@ export PROMPT_COMMAND="shell_var_fix;"
if hc_mode
then
printf "\001\e[38;5;${1}m\e[48;5;${2}m\002"
- else
+ elif [ "$TERM" != 'dumb' ]
+ then
printf "\001\e[${1}m\e[${2}m\002"
fi
}
colors_res() {
- printf "\001\e[0m\002"
+ if [ "$TERM" != 'dumb' ]
+ then
+ printf "\001\e[0m\002"
+ fi
}
# $1 cap colour [OPTIONAL]