Hacker News new | ask | show | jobs
by Graziano_M 1023 days ago
I do it differently. It supports not having to reload aliases after installing.

    alias vim='$(command -v nvim || echo vim)'
1 comments

Checking everytime you use the alias, instead on when you init the shell. How often do you need to install a packages?