Hacker News new | ask | show | jobs
by tacone 232 days ago
I have setup a shortcut: alt+. to run cd.., it's pretty cool.

I also aliased - to run cd -

1 comments

but alt-. in bash is used for pasting the last argument to the previous command into the current one.
Good point, when working with keybindings, you'll inevitably end up overriding built-ins. I see it as a trade-off, between something I don't know of (and wouldn't use) and something I find useful. Works for me :)
absolutely. From back in the day, the annoying one was GNU screen, which took over ctrl-a by default. Overrode that to be ctrl-^, which in bash is transpose, make "zx be "xz", which was rare enough to okay with losing.
it was ctrl-t, not ctrl-^