Today I learned about abbreviations in fish shell.
Abbreviations expand the shortened command to the original command.
abbr --add g 'git'
Now you can type
g and Fish will expand that to
If you want to add an argument to the command, append
abbr -a p pnpm $argv
Read other posts