1
vote
0answers
71 views

Trying to bind <ESC> to keysequence “öö” in bash vi mode

I am trying to use the german umlaut "ö" in a sequence "öö" as a binding for ESC. Having the following in my .inputrc does the job with "jj" instead of "öö"; however, when changing "jj" to "öö", it ...
2
votes
2answers
1k views

bash home/end/delete key inserting tilde, or if preceded by escape key, [1~ [3~

bash home/end/delete key inserting tilde, or if preceded by escape key, [1~ say I type echo hellp, move cursor to hel|lp and type delete, and bam, i got ~tilde say I type echo hellp, move cursor to ...
12
votes
1answer
501 views

Why do `bind` and `.inputrc` behave differently?

I'm trying to do the right thing and put my key bindings into ~/.inputrc. However, it turns out that I have to change bind '"\e\C-j":"\e[1~quiet \e[4~\n"' into "\e\C-j": "\eOHquiet \eOF\n" Now ...
2
votes
1answer
66 views

How to map // to ~/?

Is it possible to remap ~/ to //? I want to be able to do something like cat //something.txt and have it be running cat ~/something.txt Or if this isn't possible, mapping ~ to something easier to ...
6
votes
1answer
202 views

Is there a way of using ctrl-r after typing part of command in bash?

In bash the Ctrl+r command is very useful, I type Ctrl+r whatever and it searchs my history for commands containing the word whatever. But if I type whatever and realize that I would like search that ...
2
votes
1answer
463 views

How can I remap Ctrl+C to send an interrupt signal with another key?

I've got a process in bash that I can call to stop using Ctrl+C. As far as I can see, this equals to sending an exit(1) signal. I would like to loop through these processes for a list of different ...
4
votes
1answer
652 views

How do I make ESC clear a line in Bash Under Windows instead of Ctrl+u?

I use bash in Windows, both in Cygwin and in Git Bash (part of Git for Windows). In bash unlike in the Windows cmd.exe Esc does not clear the line, only Ctrl + U. How can I make clear the line also? ...