Topic: https://brettterpstra.com/2015/07/09/shell-tricks-inputrc-binding-fun/
hide preview

What's next? verify your email address for reply notifications!

Daniel Whicker 9y, 247d ago

Brilliant, BTW! I had never thought of editing commands in place with readline/inputrc. I constantly dropping in for loops by hand. No longer!

"\ef": '\C-a for i in $(\C-e) ; do \C-a \C-m'

hide preview

What's next? verify your email address for reply notifications!

Daniel Whicker 9y, 248d ago

For these to work, you'll need to enable your Option key as the meta key your terminal of choice. In Terminal.app, go to Preferences > Profiles > Use Option as Meta Key. In iTerm.app go to Preferences > Profiles > <profile> > Keys > Left option key acts as > Meta or +Esc.

remark link
hide preview

What's next? verify your email address for reply notifications!

ttscoff 9y, 248d ago

Thanks, forgot I had already set that up!

hide preview

What's next? verify your email address for reply notifications!