Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
xutopia
2y ago
0 comments
Share
Not hard to fix:
if command -v exa &> /dev/null; then alias ls='exa' fi
0 comments
default
newest
oldest
Graziano_M
2y ago
I do it differently. It supports not having to reload aliases after installing.
alias vim='$(command -v nvim || echo vim)'
JetSpiegel
2y ago
Checking everytime you use the alias, instead on when you init the shell. How often do you need to install a packages?
j
/
k
navigate · click thread line to collapse