Today I learned about abbreviations in fish shell.

Abbreviations expand the shortened command to the original command.

Example:

abbr --add g 'git'

Now you can type g and Fish will expand that to git.

If you want to add an argument to the command, append $argv:

abbr -a p pnpm $argv

Further Reading