mirror of
https://github.com/theniceboy/.config.git
synced 2025-12-26 14:44:57 +08:00
fzf-tabs and a lazygit shortcut
This commit is contained in:
parent
f9d1c671db
commit
6b0e99b5fa
3 changed files with 16 additions and 0 deletions
12
zsh/mappings.zsh
Normal file
12
zsh/mappings.zsh
Normal 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
|
||||
|
||||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue