So, "ga" similarly gives a fuzzy finder of files to "git add" that are actually in git status, "gcp" lets me cherry pick one or more commits from a branch where both the branch and commits are picked with fzf, and so on.
https://github.com/OJFord/fzutils
I dislike all the short acronym-style aliases though; (I know it's fairly popular with git) not immediately obvious if it's supported to just use the usual commands.
# git config
alias.add-commit !git add -A && git commit
# .bash_profile
# Use like: gac this is my commit message
function gac ()
{
git add-commit -m "$*"
}something like:
fgit(){
fgcommands = "git commit...\n,git rebase...\n"
# you want one per line, so I'm not perfect at bash, w/out looking up how to do it I think you could cat it into the commands.
if [ -z $1 ]; then
echo "$fgcommands"
# returns all commands
else
echo "$fgcommands" | grep commit"
# returns all commands with commit in.
fi
}
You could even have more fun w/ it by creating some script that maybe remaps all your git commands so whenever you manually do git commit <flags> -- it'd run the command then also convert your command to a string, and run each word matching like commit, rebase, etc through fgit, and create some sort of "you could've done this instead"... I'd love if zsh had more things like that, but I only recently switched to zsh and oh-my-zsh is it so much better.Think of this like in vscode when you use the command search, and it shows the keybindings next to it, so you can learn to do it better...