fzf-tabs and a lazygit shortcut

This commit is contained in:
David Chen 2020-04-02 11:50:19 -04:00
parent f9d1c671db
commit 6b0e99b5fa
3 changed files with 16 additions and 0 deletions

12
zsh/mappings.zsh Normal file
View file

@ -0,0 +1,12 @@
function zle_eval {
echo -en "\e[2K\r"
eval "$@"
zle redisplay
}
function openlazygit {
zle_eval lazygit
}
zle -N openlazygit; bindkey "^G" openlazygit

View file

@ -15,4 +15,5 @@ zmodule mafredri/zsh-async
zmodule hlissner/zsh-autopair
zmodule pabloariasal/zfm
zmodule agkozak/zsh-z
zmodule Aloxaf/fzf-tab
#zmodule cusxio/delta-prompt

View file

@ -3,10 +3,13 @@ source ~/.config/zsh/aliases.zsh
source ~/.config/zsh/plugins.zsh
source ~/.config/zsh/vi.zsh
source ~/.config/zsh/fzf.zsh
source ~/.config/zsh/mappings.zsh
if [ -f ~/.sconfig/zsh/zshrc ]; then
source ~/.sconfig/zsh/zshrc
fi
autopair-init
source ~/.zim/modules/fzf-tab/fzf-tab.plugin.zsh