1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2024-11-14 21:11:13 +00:00
prezto/modules/prompt/init.zsh

19 lines
387 B
Bash
Raw Normal View History

#
# Loads prompt themes.
#
# Authors:
# Sorin Ionescu <sorin.ionescu@gmail.com>
#
2012-05-31 21:33:59 +00:00
# Load and execute the prompt theming system.
autoload -Uz promptinit && promptinit
# Load the prompt theme.
zstyle -a ':prezto:module:prompt' theme 'prompt_argv'
if [[ $TERM == (dumb|linux|*bsd*) ]] || (( $#prompt_argv < 1 )); then
prompt 'off'
else
prompt "$prompt_argv[@]"
fi
unset prompt_argv