This repository has been archived on 2022-03-28. You can view files and clone it, but cannot push or open issues or pull requests.
prezto/modules/prompt/init.zsh

19 lines
389 B
Bash
Raw Permalink Normal View History

#
# Loads prompt themes.
#
# Authors:
# Sorin Ionescu <sorin.ionescu@gmail.com>
#
2012-05-31 17:33:59 -04: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