make lazygit keybind clear after exiting
This commit is contained in:
parent
252af948d6
commit
fa1b19b132
|
@ -86,11 +86,23 @@ _lfcd () {
|
|||
zle -N _lfcd
|
||||
bindkey '^o' _lfcd
|
||||
|
||||
lg () {
|
||||
lazygit
|
||||
clear
|
||||
}
|
||||
|
||||
_lazygit () {
|
||||
BUFFER="lg"
|
||||
zle accept-line
|
||||
}
|
||||
|
||||
zle -N _lazygit
|
||||
bindkey '^g' _lazygit
|
||||
|
||||
# Edit line in vim with ctrl-e:
|
||||
autoload edit-command-line; zle -N edit-command-line
|
||||
bindkey '^e' edit-command-line
|
||||
lg () lazygit && zle -N lg
|
||||
bindkey '^g' lg
|
||||
|
||||
|
||||
PLUGINS_HOME="${XDG_DATA_HOME:-$HOME/.local/share}/zsh/plugins"
|
||||
[ -f "$PLUGINS_HOME/fzf/key-bindings.zsh" ] && source "$PLUGINS_HOME/fzf/key-bindings.zsh"
|
||||
|
|
Loading…
Reference in New Issue