Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
xutopia
2y ago
0 comments
Save
Share
Not hard to fix:
if command -v exa &> /dev/null; then alias ls='exa' fi
0 comments
2 comments · 1 top-level
top
newest
oldest
Graziano_M
2y ago
· 1 in thread
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