I’ve done something similiar to this over the years for organization purposes and not having to change much between shells except add a path. You can also add cases that check your shell and do something slightly different if needed.
I’ve done something similiar to this over the years for organization purposes and not having to change much between shells except add a path. You can also add cases that check your shell and do something slightly different if needed.
I actually use both in fish. I use aliases for some longer commands. For example I have
laas an alias foreza -la --icons=auto --group-directories-firstbecause I don’t really want to see it every time I runla. I use abbreviations for some shorter commands. For examplesystemctlabbreviated tosysandsystemctl --userabbreviated tosysu.