pressing the left arrow at an empty shell prompt does cd ..
-
-
I'm fairly sure with bash and readline macros this is doable, but I don't know that voodoo well enough. I might pop the hood on readline and see if I can work it out if I get bored.
-
Best I can do at the moment: bind '"\xff":backward-char' backward-char () { perl -e 'ioctl STDIN, 0x5412,
$x = "\xff"' </dev/tty; } bind -x '"\eOD":"if [[ x == x$READLINE_LINE ]]; then cd ..; pwd; else backward-char; fi"' - 2 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.