Hacker News new | ask | show | jobs
by molecule 4958 days ago
the trailing 'ubl' has always seemed excessive to me:

    alias s='subl'
1 comments

If you find the "s" too much to type... and the "ubl"... and the space...

Voila!

    command_not_found_handle() {
        [[ -e "$1" ]] && subl "$1"
    }
I just hooked my shell to my frontal lobe. I find aliases to be restricting.