diff options
1 files changed, 6 insertions, 2 deletions
| -rw-r--r-- | .bashrc | 8 |
@@ -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] |
