1
0
Fork 0
mirror of synced 2024-11-15 20:48:57 -05:00

Conditionally bind zle widget

This commit is contained in:
Colin Jamison 2017-01-21 18:15:25 +01:00
parent 4a373bca4a
commit 772ed86501
4 changed files with 5 additions and 3 deletions

View file

@ -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

View file

@ -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'

View file

@ -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 '*'

View file

@ -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)
}