Conditionally bind zle widget
This commit is contained in:
parent
4a373bca4a
commit
772ed86501
4 changed files with 5 additions and 3 deletions
|
@ -157,7 +157,7 @@ prompt_eriner_setup() {
|
|||
|
||||
add-zsh-hook prompt_eriner_precmd
|
||||
|
||||
zle -N zle-keymap-select
|
||||
[[ "$ZIM_PROMPT_INSERTMODE" != '' ]] && zle -N zle-keymap-select
|
||||
|
||||
zstyle ':vcs_info:*' enable git
|
||||
zstyle ':vcs_info:*' check-for-changes false
|
||||
|
|
|
@ -32,7 +32,7 @@ prompt_gitster_setup() {
|
|||
|
||||
add-zsh-hook precmd prompt_gitster_precmd
|
||||
|
||||
zle -N zle-keymap-select
|
||||
[[ "$ZIM_PROMPT_INSERTMODE" != '' ]] && zle -N zle-keymap-select
|
||||
|
||||
zstyle ':zim:git-info:branch' format '%b'
|
||||
zstyle ':zim:git-info:commit' format '%c'
|
||||
|
|
|
@ -61,6 +61,8 @@ prompt_magicmace_setup() {
|
|||
|
||||
add-zsh-hook precmd prompt_magicmace_precmd
|
||||
|
||||
[[ "$ZIM_PROMPT_INSERTMODE" != '' ]] && zle -N zle-keymap-select
|
||||
|
||||
zstyle ':zim:git-info:branch' format '%b'
|
||||
zstyle ':zim:git-info:commit' format '%c...'
|
||||
zstyle ':zim:git-info:dirty' format '*'
|
||||
|
|
|
@ -102,7 +102,7 @@ prompt_steeef_setup() {
|
|||
add-zsh-hook preexec steeef_preexec
|
||||
add-zsh-hook chpwd steeef_chpwd
|
||||
add-zsh-hook precmd prompt_steeef_precmd
|
||||
zle -N zle-keymap-select
|
||||
[[ "$ZIM_PROMPT_INSERTMODE" != '' ]] && zle -N zle-keymap-select
|
||||
prompt_opts=(cr subst percent)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue