GNU Readline is a library for command line edition, used by bash and some other programs

learn more… | top users | synonyms

7
votes
2answers
3k views

How to remove last part of a path in bash? [duplicate]

Possible Duplicate: How to delete part of a path in an interactive shell? Is there a short-cut in bash that lets you delete the last part of a path? Example: /usr/local/bin should become ...
1
vote
1answer
191 views

Tab and complete

Is the key binding for tab to complete in the readline settings set implicitly. Because when I outputted bind -q complete I got this in return complete can be invoked via "\C-i", "\e\e". ...
5
votes
2answers
626 views

Setting readline variables in the shell

I read in the man page, that you set readline parameters on an off or to a value by using set var value Is this the same as the set builtin, and how do you set the variables once inputrc has already ...
3
votes
2answers
158 views

Why do different terminals have different values for keys in the .inputrc file?

This question really started from here. I would like to know why different terminals like rxvt and xterm use different values when mapping key combinations? Whilst I am in rxvt or xterm how can I find ...
8
votes
1answer
597 views

What is the general format of keyname for key bindings in “inputrc” file?

I understand that the format for key bindings in inputrc file is: keyname: function-name or macro For keyname, I saw things like: "\e[B" "\e[1~" "\e[5D" "\M-l" "\C-[OD" "\e\e[D" What is the ...
1
vote
1answer
522 views

How can I make custom key bindings work even while SSH-ed into another machine?

I've added "\eOD": backward-word "\eOC": forward-word to my .inputrc to get ctrl-arrow key mappings sorted out in Cygwin allowing me to move forward and back fine. When I SSH to any other Linux ...
3
votes
1answer
333 views

How race conditions affect reads and writes (that happen at the same time)

Let's say I open a file a for reading. What if an application, let's call it aWriter writes to this file in random intervals. Are there any possibilities of me receiving improper file contents if I ...
6
votes
1answer
1k views

.inputrc TAB not behaving as expected

I'm on a roll today, here's another question: How come when I put these into .inputrc, they both do the same thing? TAB: menu-complete Shift-TAB: menu-complete-reverse i.e. they both do whatever ...
107
votes
3answers
50k views

How to unfreeze after accidentally pressing Ctrl-S in a terminal?

It's a situation that has happened quite often to me: after I press (with a different intention) Ctrl-S in a terminal, the interaction (input or output) with it is frozen. It's probably a kind of ...
8
votes
7answers
10k views

How do I install a PHP CLI with a usable interactive prompt on Debian Wheezy?

When I install php5-cli on Debian Wheezy (currently testing), the interactive prompt is very unusable due to missing readline support (bug 341868). What's the easiest way to install a version linked ...
4
votes
1answer
1k views

How do you configure .inputrc so ALT+UP has the effect of cd

It should be possible to do that by having ALT+UP generate consecutive keyboard input equivalent to cdspace..ENTER by means of a macro definition. But can't figure out how exactly to do it.
4
votes
1answer
287 views

Why is Vim eating up Ctrl when used with Ctrl+v and how to fix it?

I'm using Vim /etc/zsh/zshrc to add key bindings for zsh because it doesn't work with inputrc. In my terminal with tmux when I type Ctrl+v then Ctrl+LeftArrow the shell will show ^[OD. However, when ...
2
votes
1answer
395 views

VI mode in freetalk

I somehow managed to get my freetalk into vi-mode. I'm just unsure how I did it (if I restart freetalk I get an emacs-mode). Anyone an idea?