mirror of
https://github.com/dcarrillo/prezto.git
synced 2024-12-22 09:18:00 +00:00
[Fix #713] Set prompt theme off in unsupported terminal
This commit is contained in:
parent
d020d34e59
commit
ab7f697734
@ -10,9 +10,9 @@ autoload -Uz promptinit && promptinit
|
||||
|
||||
# Load the prompt theme.
|
||||
zstyle -a ':prezto:module:prompt' theme 'prompt_argv'
|
||||
if (( $#prompt_argv > 0 )); then
|
||||
prompt "$prompt_argv[@]"
|
||||
else
|
||||
if [[ "$TERM" == (dumb|linux|*bsd*) ]] || (( $#prompt_argv < 1 )); then
|
||||
prompt 'off'
|
||||
else
|
||||
prompt "$prompt_argv[@]"
|
||||
fi
|
||||
unset prompt_argv
|
||||
|
Loading…
Reference in New Issue
Block a user