1
0
Fork 0
mirror of synced 2024-11-26 17:25:35 -05:00

update function names in eriner prompt

This commit is contained in:
Matt Hamilton 2015-12-15 21:51:28 -05:00
parent 390d6d39a5
commit 66941895f6

View file

@ -112,7 +112,7 @@ prompt_status() {
} }
## Main prompt ## Main prompt
prompt_agnoster_main() { prompt_eriner_main() {
RETVAL=$? RETVAL=$?
CURRENT_BG='NONE' CURRENT_BG='NONE'
prompt_status prompt_status
@ -122,18 +122,18 @@ prompt_agnoster_main() {
prompt_end prompt_end
} }
prompt_agnoster_precmd() { prompt_eriner_precmd() {
vcs_info vcs_info
PROMPT='%{%f%b%k%}$(prompt_agnoster_main) ' PROMPT='%{%f%b%k%}$(prompt_eriner_main) '
} }
prompt_agnoster_setup() { prompt_eriner_setup() {
autoload -Uz add-zsh-hook autoload -Uz add-zsh-hook
autoload -Uz vcs_info autoload -Uz vcs_info
prompt_opts=(cr subst percent) prompt_opts=(cr subst percent)
add-zsh-hook precmd prompt_agnoster_precmd add-zsh-hook precmd prompt_eriner_precmd
zstyle ':vcs_info:*' enable git zstyle ':vcs_info:*' enable git
zstyle ':vcs_info:*' check-for-changes false zstyle ':vcs_info:*' check-for-changes false
@ -141,4 +141,4 @@ prompt_agnoster_setup() {
zstyle ':vcs_info:git*' actionformats '%b (%a)' zstyle ':vcs_info:git*' actionformats '%b (%a)'
} }
prompt_agnoster_setup "$@" prompt_eriner_setup "$@"