1
0
Fork 0
mirror of synced 2024-11-26 17:25:35 -05:00

[prompt] change unset variable test

The old test, [[ ${var} ]] tests for unset AND zero-length strings.

Checking for zero length strings probably isn't that important. It is
enough to ensure that the variable is set.

Closes #18
This commit is contained in:
Matt Hamilton 2016-01-08 09:16:22 -05:00
parent 7020eead86
commit d13614e3bb

View file

@ -2,7 +2,7 @@
# load user-defined prompt # load user-defined prompt
# #
if [[ ! ${TERM} == (linux|*bsd*|dumb) ]] && [[ ${zprompt_theme} ]]; then if [[ ! ${TERM} == (linux|*bsd*|dumb) ]] && (( ${+zprompt_theme} )); then
autoload -Uz promptinit && promptinit autoload -Uz promptinit && promptinit
prompt ${zprompt_theme} prompt ${zprompt_theme}
fi fi