[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:
parent
7020eead86
commit
d13614e3bb
@ -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
|
||||||
|
Reference in New Issue
Block a user