1
0
Fork 0

make lazygit keybind clear after exiting

This commit is contained in:
Luca Bilke 2022-08-04 18:27:11 +02:00
parent 252af948d6
commit fa1b19b132
1 changed files with 14 additions and 2 deletions

View File

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