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:
parent
dd0655db2b
commit
2bdcf5e4e3
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue