2012-04-02 23:21:54 +00:00
|
|
|
#
|
|
|
|
# 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.
|
2012-04-02 23:21:54 +00:00
|
|
|
autoload -Uz promptinit && promptinit
|
|
|
|
|
|
|
|
# Load the prompt theme.
|
2012-09-03 20:08:39 +00:00
|
|
|
zstyle -a ':prezto:module:prompt' theme 'prompt_argv'
|
2023-04-27 00:40:59 +00:00
|
|
|
if [[ $TERM == (dumb|linux|*bsd*) ]] || (( $#prompt_argv < 1 )); then
|
2012-04-02 23:21:54 +00:00
|
|
|
prompt 'off'
|
2014-11-05 22:41:36 +00:00
|
|
|
else
|
|
|
|
prompt "$prompt_argv[@]"
|
2012-04-02 23:21:54 +00:00
|
|
|
fi
|
|
|
|
unset prompt_argv
|