a fish shell abbreviation that sparks joy
summary My favorite command line shell is fish, and one feature I find especially useful is abbreviations.
Abbreviations are essentially text-expanded shortcuts. Continue reading for a quick rundown.
basic usage To add an abbreviation simply call abbr -a WORD EXPANSION, where WORD is the abbreviation and EXPANSION is the expanded command. For example: abbr -a gco git commit.
To use it, simply type gco, followed by Space or Enter.
advantages Abbreviations can be very useful because: