Re:What typing ^D does on Unix (2009)
by wruza on Tuesday September 06, 2016 @03:54PM
(#12438816)
It is also very convenient to remap up/down keys to not just list history, but to do completion based on already typed characters:
(fix: grammar)
[ Parent
| on HN ]
Re:What typing ^D does on Unix (2009)
by nitrogen on Tuesday September 06, 2016 @04:10PM
(#12438946)
Debian and Ubuntu typically have a commented-out mapping for this in /etc/inputrc as pgup/pgdn that I always enable in my ~/.inputrc. Editline supports something similar in .editrc IIRC.
Funny, I became FreeBSD user because default .cshrc contained it (iirc). I didn't know about shells, readline, etc. back then. Wonder why they do not enable it on up-down by default, cause I see too many linuxoids around bored with up-up-up-enter up-up-up-enter to replay history, not even knowing that completion exists (along with at least ^K ^U ^C).
What's the point to type a half-command and then replace input line with one from history if I press up? That somewhat resembles ugly cmd.exe, which every windows user imagines when someone says 'cli'.