Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I need this *so* often that I programmed my shell to execute 'cd ..' every time I press KP/ i.e. '/' on the keypad, without having to hit Return.

Other single-key bindings I use often are:

KP* executes 'ls'

KP- executes 'cd -'

KP+ executes 'make -j `nproc`'



How? Readline macros?


Literally with my own shell: https://github.com/cosmos72/schemesh




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: