The inputrc tag has no wiki summary.
0
votes
1answer
17 views
Partial ignore case tab completion
First, let me go through a specific case and then explain the general case.
Suppose I have two directories A and B.
The contents of A are:
foo
Bar
The contents of B are
foobar
Foobar
I would ...
1
vote
1answer
30 views
~/.inputrc causes CTRL+arrows not to work
When ~/.inputrc does not exist, hitting CTRL+LARROW and CTRL+RARROW on a Bash command line moves the cursor back and forward by one word, respectively.
However, if ~/.inputrc exists (regardless of ...
7
votes
1answer
2k views
Understanding control characters in .inputrc
My Linux account in a remote machine comes with the following pre-defined .inputrc
"\e[1~": beginning-of-line
"\e[4~": end-of-line
“\e[5~”: history-search-backward
“\e[6~”: history-search-forward
...
6
votes
1answer
219 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 ...
1
vote
0answers
42 views
Binding .inputrc on Mac
On linux I had this line on my .inputrc:
"\C-/": undo
Which doesn't work on Mac. Is there a way to make it work? On another note, is there a way to biind command keys on inputrc?
1
vote
1answer
250 views
Enable alt/ctrl + left/right on CentOS command line
My hoster recently updated to a new CentOS and I've been 'personalizing' it and now I'm missing something.
On my home Ubuntu Server I can forward-word and backward-word with ALT + RIGHT / LEFT. I ...
1
vote
2answers
157 views
page up/down print ~ instead of history search in terminal
I am on a Macbook Pro with mac os x 10.8.2
I have set:
page up: \033[5~
page down: \033[6~
in terminal keyboard settings (pressing esc to get \033).
My ~/.xinputrc is:
# Be 8 bit clean.
set ...
1
vote
0answers
30 views
Making M-u, M-l, and M-c apply to whole words in readline
This is what I've come up with so far:
"\C-\eU": upcase-word
"\C-\eL": downcase-word
"\C-\eC": capitalize-word
"\eu": "\C-f\eb\C-\eU"
"\el": "\C-f\eb\C-\eL"
"\ec": "\C-f\eb\C-\eC"
Is there some ...
2
votes
2answers
293 views
How to override default bash key-bindings?
I write this config file:
# ~/.inputrc
Control-d: "\C-udate +'%F %T'\C-m"
I want to run date command when I type Ctrl-d.
But I cannot override the default behavior(exit).
Thanks for your help.
6
votes
1answer
447 views
How do I reload .inputrc using a bash script?
This question explains how to reload .inputrc using C-x C-r. But how would one reload it using commands in a bash script?
18
votes
2answers
4k views
How do I reload .inputrc?
Background (probably wrong)
I have heard that the readline module is reading ~/.inputrc and that is how it changes the behaviour of keystrokes under programs such as bash.
Question
How can I reload ...
0
votes
3answers
909 views
.inputrc settings: delete-char and [] keybindings not working
I am using mingw under windows. When I am using ruby (irb) my 'special' characters like []{} and \ are not working. This is because of my german keyboard, where these keys are used together with AltGr ...
4
votes
2answers
340 views
Bash's equivalent of Tcsh's ESC+p
I'm moving from Tcsh to Bash, and I would like to take the ESC+p feature with me.
If I type , say git cl, and then press ESC+p, it should complete automatically to the last command that starts with ...
10
votes
4answers
639 views
Is there any way to save a keyboard macro in bash?
I would like to permanently save a keyboard macro that I've recorded using C-x ( and C-x ). Is there an easy way to "see the source" for my newly recorded macro so that I can bind it to a keyboard ...
2
votes
1answer
405 views
Recommended bash key bindings in .inputrc file? [closed]
I have a few simple key bindings such as reverse-search-history. I saw an article a while ago with some other great ideas for key bindings. Was wondering what other people out there had configured.
6
votes
4answers
3k views
change bash shortcut keys such as Ctrl-C?
I am using Kubuntu 10.04. I would like to change some of the standard shortcut keys for bash (terminal).
Here are the shortcuts I would like to set up:
Ctrl-C to copy the selected text in
the ...
0
votes
1answer
231 views
/etc/inputrc does not seem to be recognized as user on Ubuntu 8.04.2 LTS
On a new installation of Ubuntu 8.04.2 LTS, logging in as a standard user does not maintain the keybindings (whether through sudo su - or direct from ssh). As the root user everything is fine and ...