Y
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
Graziano_M
1022 days ago
I do it differently. It supports not having to reload aliases after installing.
alias vim='$(command -v nvim || echo vim)'
link
JetSpiegel
1019 days ago
Checking everytime you use the alias, instead on when you init the shell. How often do you need to install a packages?
link