55 sats \ 4 replies \ @k00b 8 Jul
I also hadn't used ctrl-w or crtl-u before. On mac, I use alt-right/left arrow rather than ctrl-rl-arrow to cursor over words.
reply
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.
reply
If you add this to your bashrc you can use vim key bindings to edit your commands.
set -o vi
Then 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.
reply
55 sats \ 1 reply \ @k00b 8 Jul
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.
reply
Ah, then you would not gain anything from this :)
reply