feat(zsh): add git hotkey insertions

This commit is contained in:
Badstagram 2025-12-30 19:55:05 +00:00
parent 353e126cf8
commit d94bffa41a

View File

@ -15,6 +15,11 @@ bindkey -M emacs '^[[3;5~' kill-word # ctrl + del = delete word after curso
bindkey -M emacs '^[[1;5D' backward-word # ctrl +  = move cursor to start of last word
bindkey -M emacs '^[[1;5C' forward-word # ctrl +  = move cursor to end of next word
bindkey -s '^Xga' 'git add .'
bindkey -s '^Xgc' 'git commit -m ""\C-b'
bindkey -s '^Xgp' 'git push origin $(git rev-parse --abbrev-ref HEAD)'
# fnm
FNM_PATH="$HOME/.local/share/fnm"
if [ -d "$FNM_PATH" ]; then