Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to add multiple commands to the readline .inputrc file?

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
like image 625
andersjanmyr Avatar asked Jan 19 '09 08:01

andersjanmyr


1 Answers

Try:

"\e\"": "@{}\e[D"
like image 165
Antibaddy Avatar answered Oct 12 '22 01:10

Antibaddy