Julia Evans explains how readline works in the terminal.
Some good tips in this one. I have used many of these for well over 10 years.
pull down to refresh
Julia Evans explains how readline works in the terminal.
Some good tips in this one. I have used many of these for well over 10 years.
One of my top ten frustrations is expecting readline in an interactive mode and not getting it.
I hadn't heard of rlwrap. I'll have to give a try next time this happens.
Yeah, new to me as well.
I also hadn't used
ctrl-worcrtl-ubefore. On mac, I usealt-right/left arrowrather thanctrl-rl-arrowto cursor over words.These little tips man, they are gold. Years ago I used to do a talk called "Cracking the Shell" that was just a bunch of stuff like this I'd picked up over the years. I know I'm not even scratching the surface. So many little tips and tricks.
If you add this to your bashrc you can use vim key bindings to edit your commands.
set -o viThen if you write a command out and then press escape, you can use vim motions to move around and edit your command. Its mentioned in the post but not explained.
I find that useful.
I'm not a vim guy! I've always used a non-terminal-based editor. I can get around in vim for quick and dirty remote hot fixes, but I'm no wiz.
Ah, then you would not gain anything from this :)
Man, this is a fantastic overview. The inconsistencies in various shells have driven me nuts, and I'd never really though about the "why" beneath it.