Solarize the shell only when in interactive mode

The escape sequences necessary for controlling the terminal's colors
confuses FTP clients. Therefore, we only use the colors when we can
actually see them -> shell is running interactively.
This commit is contained in:
Fernando Schauenburg 2015-11-30 09:55:18 +01:00
parent dd0655db2b
commit 2bdcf5e4e3

View file

@ -165,4 +165,5 @@ solarized() {
printf "\033[%sm%-7s\033[0m\n" "0;35" Magenta
}
do_solarize_shell
# Solarize the shell only if running interactively (makes FTP clients happy)
[[ "$-" == *i* ]] && do_solarize_shell