News for hackers. Stuff that matters.
Re:Why “alias” is my last resort for aliases by watusername on Wednesday March 05, 2025 @08:58AM (#43266441)
Yes, and this is why I recommend against the alias-y wrappers.

Personally, I like using abbreviations ("abbr") in fish, which automatically expand as you hit space. This is especially helpful when screen sharing: No more "what does this gcob command do" questions!

Re:Why “alias” is my last resort for aliases by leojfc on Wednesday March 05, 2025 @09:19AM (#43266721)
Yeah, I do something kind of similar, using Dash [1] snippets which expand to full commands.

Since I'm almost always on my mac, it means they're available in every shell, including remote shells, and in other situations like on Slack or writing documentation.

I mostly use § as a prefix so I don't type them accidentally (although my git shortcuts are all `gg`-consonant which is not likely to appear in real typing).

[1] https://kapeli.com/dash

Re:Why “alias” is my last resort for aliases by BerislavLopac on Wednesday March 05, 2025 @10:52AM (#43268229)
I was nearly 10 years old (i.e. as a Fish user) when I learned about abbr. I used to use functions for everything. :facepalm:
Re:Why “alias” is my last resort for aliases by psychoslave on Wednesday March 05, 2025 @09:06AM (#43266529)
Came here to mention just this, all the more as the article mention that the author is considering a move to Fish.