init
This commit is contained in:
18
.zprezto/modules/prompt/init.zsh
Normal file
18
.zprezto/modules/prompt/init.zsh
Normal file
@@ -0,0 +1,18 @@
|
||||
#
|
||||
# Loads prompt themes.
|
||||
#
|
||||
# Authors:
|
||||
# Sorin Ionescu <sorin.ionescu@gmail.com>
|
||||
#
|
||||
|
||||
# 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
|
Reference in New Issue
Block a user