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