Questions tagged [inputrc]

The tag has no usage guidance.

0
votes
0answers
34 views

.inputrc bindings sporadically not working

I have the following entries in my ~/.inputrc file: "\e[A": history-search-backward "\e[B": history-search-forward Normally, this works fine. For example, if I type 'ss' then press up or down, I can ...
0
votes
0answers
78 views

Create keyboard bindings for go back word and go forward word in iTerm using config file?

I have tried adding the following to my ~/.inputrc but it doesn't work "\e[1;9D": backward-word "\e[1;9C": forward-word What more do I need to do?
1
vote
0answers
39 views

stop bash try to display every possible result and auto-complete when ambiguous result find

This is my .inputrc 9 set show-all-if-unmodified on 10 set menu-complete-display-prefix on 11 #set completion-ignore-case on 12 set disable-completion on 1) How do I stop bash try to display ...
0
votes
1answer
59 views

How to detect whether use `.inputrc` or not

I need add "\e[1;5C": forward-word # ctrl + right "\e[1;5D": backward-word # ctrl + left in ~/.inputrc to make tmux works in msys2. But this would corrupt git-bash, how do I make only msys2 ...
0
votes
1answer
543 views

bash: TAB command not found in .inputrc

I am trying to bash tab completion and added this inside .inputrc on mac os: set completion-ignore-case on set show-all-if-ambiguous on TAB: menu-complete But when i source inputrc i get: bash: TAB ...
1
vote
1answer
2k views

How to use the shift + arrow keys to select the current terminal command?

I found this https://superuser.com/a/488158/458103 to make the ctrl+arrow to move the cursor forward and backward. Now how to make the shift+arrow select the current command words?
0
votes
1answer
2k views

How to move the commandline cursor on bash using the mouse

When using bash (in Terminal) with very long commands, it is often useful to be able to set the cursor to an arbitrary location using the mouse. In Mac-Os, the alt (Option) key is having this effect (...
0
votes
1answer
161 views

separate mappings for TAB and C-i in .inputrc

For what I have tried, "TAB" and "C-i" in .inputrc seems to mean the same thing, whatever I bind to one is bound to the other. I know that originally, it was the same thing and that this behavior is ...
3
votes
1answer
623 views

how to disable `alt-numkey` in bash shell

I can bounce between apps in Chrome OS by pressing alt-N, where N is the position of my app on the status bar. Useful! But when I'm in the bash shell of my Nitrous.io box, pressing alt-N to bounce to ...
1
vote
1answer
843 views

Meta keybindings for bash readline from .inputrc not working

If I put "\M-p": previous-history into my .inputrc and fire up a terminal (urxvt or xterm), hitting Alt-p prints a ":" character. Subsequent hits produce ^[p like so: :^[p^[p^[p^[p^[p I would like ...
0
votes
1answer
265 views

inputrc windows for ipdb kybinding

I am trying to get vi bindings for python debugger ipdb. I am not running cygwin's python but the windows version from the dos command prompt. I have tried creating .inputrc in my %HOMEPATH% directory,...
4
votes
0answers
388 views

How can I get bash to perform case insensitive tab-completion for my aliases and functions?

I have an alias like this: alias sshUntrusted='ssh -X -C -c blowfish-cbc,arcfour' But when I type $ sshun followed by Tab, Bash does not complete the alias. I have put set completion-ignore-case ...
4
votes
1answer
2k views

Keystrokes and commands for my inputrc — key-combination for “Shift-Space”, remap “Ctrl-PageUp/PageDown” to something without Page-keys

I need to add some things to my inputrc. I'm using bash 4, as OS I'm using debian and OSX. My terminal emulators are rxvt-unicode-256 on debian and Terminal.app on OSX. My new macbook has no Insert/...
2
votes
1answer
881 views

How do I get `set show-all-if-ambiguous on` in my .inputrc to play nice with the Python interpreter?

I noticed that after I added the set show-all-if-ambiguous on line to my ~/.inputrc, whenever I pressed tab to indent a block, it would show me the bash Display all ... possibilities? (y or n) prompt, ...
1
vote
0answers
670 views

.inputrc, TAB and CTRL-i

Apparently, when we hit TAB in Terminal, CTRL+i is send instead, so we cannot have different bindings for these keypresses in our .inputrc: "\C-i": forward-char TAB: complete This makes TAB move the ...
1
vote
0answers
183 views

Getting bash history-complete-backwards/fowards and vi-mode to work with tmux

I'm using bash on Ubuntu 12.04 my inputrc contains: "\e[A": history-search-backward "\e[B": history-search-forward set show-all-if-ambiguous on set completion-ignore-case on"" for my history ...
0
votes
0answers
76 views

Can FIGNORE be limited to specific applications?

I know that you can use FIGNORE to remove filename completion from suffixes. For example, to avoid a lot of garbage files produced by LaTeX, I've been using: FIGNORE=bst:aux:bbl:blg:pdf:fls:...
0
votes
1answer
56 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 ...
6
votes
2answers
725 views

~/.inputrc causes CTRL+arrows not to work

When ~/.inputrc does not exist, hitting Ctrl+Left Arrow and Ctrl+Right Arrow on a Bash command line moves the cursor back and forward by one word, respectively. However, if ~/.inputrc exists (...
2
votes
0answers
380 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 bind command keys on inputrc?
8
votes
3answers
5k 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 ...
14
votes
1answer
1k 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 \...
3
votes
2answers
3k 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
46 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 ...
3
votes
2answers
1k 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.
30
votes
1answer
5k 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?
6
votes
2answers
2k 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 ...
11
votes
4answers
2k 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 ...
20
votes
1answer
7k 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 "\e[...
2
votes
1answer
1k 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.
91
votes
4answers
28k views

How do I reload .inputrc?

Background 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 this after ...
20
votes
4answers
18k 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
376 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 /...
28
votes
2answers
11k views

Putty SSH: CTRL+Cursor keys don't work skip to previous/next word

When I am connected to my local Ubuntu dev server with putty (from my Windows 7 box) via SSH, the following key combinations don't work to move the cursor forward and backward on word boundaries: ...
0
votes
3answers
2k 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 ...