logoalt Hacker News

pmarreckyesterday at 1:31 PM1 replyview on HN

would an alias just work in this use-case?


Replies

listeriayesterday at 3:17 PM

Global aliases are a zsh feature and not avaliable in bash. So if you want:

  openssl ,v
to expand to...

  openssl --version
readline seems like the way to go.

Then again most of the examples OP gave are usually available as short options, and aliasing ,s to sudo is certainly possible. So the only one which makes sense to me is ,,=$. But it's probably not worth the trouble to my muscle memory.