update function names in eriner prompt
This commit is contained in:
parent
390d6d39a5
commit
66941895f6
1 changed files with 6 additions and 6 deletions
|
@ -112,7 +112,7 @@ prompt_status() {
|
|||
}
|
||||
|
||||
## Main prompt
|
||||
prompt_agnoster_main() {
|
||||
prompt_eriner_main() {
|
||||
RETVAL=$?
|
||||
CURRENT_BG='NONE'
|
||||
prompt_status
|
||||
|
@ -122,18 +122,18 @@ prompt_agnoster_main() {
|
|||
prompt_end
|
||||
}
|
||||
|
||||
prompt_agnoster_precmd() {
|
||||
prompt_eriner_precmd() {
|
||||
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 vcs_info
|
||||
|
||||
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:*' check-for-changes false
|
||||
|
@ -141,4 +141,4 @@ prompt_agnoster_setup() {
|
|||
zstyle ':vcs_info:git*' actionformats '%b (%a)'
|
||||
}
|
||||
|
||||
prompt_agnoster_setup "$@"
|
||||
prompt_eriner_setup "$@"
|
||||
|
|
Loading…
Reference in a new issue