I use aliases, but they expand after I type them, the same as as snippet in an IDE or text editor.
Me and everyone else can see the underlying command, and that's also what's saved in my shell history.
I still have the benefit of not having to type the whole command without obscuring it.
I used to have custom code in my zsh configuration, but recently switched to zsh-abbr.
The first impressions are positive and I no longer need to maintain my custom code.
I use aliases for commands I don't want to expand, but I've moved everything else has moved to abbreviations.
If you use zsh, I recommend trying it.
- Oliver
Was this interesting?
About me
I'm an Acquia-certified Drupal Triple Expert with 17 years of experience, an open-source software maintainer and Drupal core contributor, public speaker, live streamer, and host of the Beyond Blocks podcast.