1
0
Fork 0
mirror of synced 2024-11-16 04:55:35 -05: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

8 lines
175 B
Bash

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