Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
0 points
molecule
13y ago
0 comments
Share
the trailing 'ubl' has always seemed excessive to me:
alias s='subl'
undefined | Better HN
0 comments
default
newest
oldest
lunixbochs
13y ago
If you find the "s" too much to type... and the "ubl"... and the space...
Voila!
command_not_found_handle() { [[ -e "$1" ]] && subl "$1" }
stevvooe
13y ago
I just hooked my shell to my frontal lobe. I find aliases to be restricting.
j
/
k
navigate · click thread line to collapse