Hacker News new | ask | show | jobs
by xutopia 1022 days ago
Not hard to fix:

  if command -v exa &> /dev/null; then
      alias ls='exa'
  fi
1 comments

I do it differently. It supports not having to reload aliases after installing.

    alias vim='$(command -v nvim || echo vim)'
Checking everytime you use the alias, instead on when you init the shell. How often do you need to install a packages?