5

I'm trying to configure my Terminal and I would like to insert @{} at one key-stroke. This works with the following code

# .inputrc
"\e\"": "@{}"

But I also want the cursor to end up inside the braces. How can I do this? The following doesn't work.

# .inputrc
"\e\"": "@{}": backward-char
andersjanmyr
  • 11,302
  • 5
  • 29
  • 29

2 Answers2

6

Try:

"\e\"": "@{}\e[D"
Antibaddy
  • 254
  • 2
  • 6
0

My immediate way to fix your overall goal (not really answering your question, but hopefully helping you anyway): write a bash alias or function for it. grev() perhaps, or something similar - at least, this is what I would do were I in your situation.

I am interested to see if what you originally asked is possible, however, so voting up your question in hopes that you can get a 'real answer'!

ELLIOTTCABLE
  • 17,185
  • 12
  • 62
  • 78