Hacker News new | ask | show | jobs
by subpixel 4961 days ago
Nitpick: the trailing 'l' has always seems superfluous to me - my alias is 'sub'
1 comments

the trailing 'ubl' has always seemed excessive to me:

    alias s='subl'
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.