1
0
Fork 0
mirror of synced 2024-06-02 15:21:11 -04:00
zimfw/modules/prompt/init.zsh
Matt Hamilton d13614e3bb [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
2016-01-08 09:16:22 -05:00

9 lines
175 B
Bash

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