author | Oleksandr Gavenko <gavenkoa@gmail.com> |
Sat, 13 Aug 2011 00:48:23 +0300 | |
changeset 169 | 3379424b5448 |
parent 160 | d45758677427 |
child 170 | d67518019fe5 |
permissions | -rwxr-xr-x |
50
9a89ae1918c4
How re-read ~/.inputrc.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
37
diff
changeset
|
1 |
# Settings for readline. |
9a89ae1918c4
How re-read ~/.inputrc.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
37
diff
changeset
|
2 |
# |
9a89ae1918c4
How re-read ~/.inputrc.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
37
diff
changeset
|
3 |
# Tips: |
9a89ae1918c4
How re-read ~/.inputrc.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
37
diff
changeset
|
4 |
# C-x C-r re-read ~/.inputrc |
33
961fa02a30ff
Allow display and input russial letter in bash/rxvt on Cygwin.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
5 |
|
961fa02a30ff
Allow display and input russial letter in bash/rxvt on Cygwin.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
6 |
# I like this! |
961fa02a30ff
Allow display and input russial letter in bash/rxvt on Cygwin.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
7 |
set editing-mode emacs |
961fa02a30ff
Allow display and input russial letter in bash/rxvt on Cygwin.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
8 |
|
961fa02a30ff
Allow display and input russial letter in bash/rxvt on Cygwin.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
9 |
# Don't strip characters to 7 bits when reading. |
961fa02a30ff
Allow display and input russial letter in bash/rxvt on Cygwin.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
10 |
set input-meta on |
961fa02a30ff
Allow display and input russial letter in bash/rxvt on Cygwin.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
11 |
|
961fa02a30ff
Allow display and input russial letter in bash/rxvt on Cygwin.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
12 |
# Allow iso-latin1 characters to be inserted rather than converted to |
961fa02a30ff
Allow display and input russial letter in bash/rxvt on Cygwin.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
13 |
# prefix-meta sequences. |
961fa02a30ff
Allow display and input russial letter in bash/rxvt on Cygwin.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
14 |
set convert-meta off |
961fa02a30ff
Allow display and input russial letter in bash/rxvt on Cygwin.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
15 |
|
961fa02a30ff
Allow display and input russial letter in bash/rxvt on Cygwin.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
16 |
# Display characters with the eighth bit set directly rather than as |
961fa02a30ff
Allow display and input russial letter in bash/rxvt on Cygwin.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
17 |
# meta-prefixed characters. |
961fa02a30ff
Allow display and input russial letter in bash/rxvt on Cygwin.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
18 |
set output-meta on |
961fa02a30ff
Allow display and input russial letter in bash/rxvt on Cygwin.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
19 |
|
159
022803a4d179
Terminal driver rebound some keys. See output 'stty -a'. I like original
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
143
diff
changeset
|
20 |
# Terminal driver rebound some keys. See output 'stty -a'. I like original |
022803a4d179
Terminal driver rebound some keys. See output 'stty -a'. I like original
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
143
diff
changeset
|
21 |
# control codes (to set 'C-w', etc). |
022803a4d179
Terminal driver rebound some keys. See output 'stty -a'. I like original
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
143
diff
changeset
|
22 |
set bind-tty-special-chars off |
022803a4d179
Terminal driver rebound some keys. See output 'stty -a'. I like original
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
143
diff
changeset
|
23 |
|
52
1481359f69d8
Useful competition settings.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
51
diff
changeset
|
24 |
# Ignore case (on/off). |
1481359f69d8
Useful competition settings.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
51
diff
changeset
|
25 |
set completion-ignore-case on |
1481359f69d8
Useful competition settings.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
51
diff
changeset
|
26 |
|
1481359f69d8
Useful competition settings.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
51
diff
changeset
|
27 |
set completion-query-items 100 |
1481359f69d8
Useful competition settings.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
51
diff
changeset
|
28 |
|
37
5d56427b59a4
First tab suggests ambiguous variants.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
33
diff
changeset
|
29 |
# First tab suggests ambiguous variants. |
5d56427b59a4
First tab suggests ambiguous variants.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
33
diff
changeset
|
30 |
set show-all-if-ambiguous on |
5d56427b59a4
First tab suggests ambiguous variants.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
33
diff
changeset
|
31 |
|
52
1481359f69d8
Useful competition settings.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
51
diff
changeset
|
32 |
# If set to 'on', completed directory names have a slash appended. The default is 'on'. |
1481359f69d8
Useful competition settings.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
51
diff
changeset
|
33 |
set mark-directories on |
1481359f69d8
Useful competition settings.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
51
diff
changeset
|
34 |
|
1481359f69d8
Useful competition settings.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
51
diff
changeset
|
35 |
# If set to 'on', a character denoting a file's type is appended to the |
1481359f69d8
Useful competition settings.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
51
diff
changeset
|
36 |
# filename when listing possible completions. The default is 'off'. |
1481359f69d8
Useful competition settings.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
51
diff
changeset
|
37 |
set visible-stats on |
1481359f69d8
Useful competition settings.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
51
diff
changeset
|
38 |
|
169
3379424b5448
mark-symlinked-directories on.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
160
diff
changeset
|
39 |
set mark-symlinked-directories on |
3379424b5448
mark-symlinked-directories on.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
160
diff
changeset
|
40 |
|
53
e38c00b4f0f0
Use beep if possible.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
52
diff
changeset
|
41 |
# I like beep (audible/visible/none). |
e38c00b4f0f0
Use beep if possible.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
52
diff
changeset
|
42 |
set bell-style audible |
e38c00b4f0f0
Use beep if possible.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
52
diff
changeset
|
43 |
|
51
5e6ee2b720fd
Point to C-v key binding.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
50
diff
changeset
|
44 |
# 'quoted-insert' binded to C-q or C-v by default, but C-q usually not worked |
5e6ee2b720fd
Point to C-v key binding.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
50
diff
changeset
|
45 |
# because it handled by terminal driver before readline. |
5e6ee2b720fd
Point to C-v key binding.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
50
diff
changeset
|
46 |
C-v: quoted-insert |
37
5d56427b59a4
First tab suggests ambiguous variants.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
33
diff
changeset
|
47 |
|
54
95a79aeb9abb
Misc readline customisation.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
53
diff
changeset
|
48 |
# Setting it to 'on' means that the text of the lines being edited will scroll |
95a79aeb9abb
Misc readline customisation.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
53
diff
changeset
|
49 |
# horizontally on a single screen line when they are longer than the width of |
95a79aeb9abb
Misc readline customisation.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
53
diff
changeset
|
50 |
# the screen, instead of wrapping onto a new screen line. By default, this |
95a79aeb9abb
Misc readline customisation.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
53
diff
changeset
|
51 |
# variable is set to 'off'. |
95a79aeb9abb
Misc readline customisation.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
53
diff
changeset
|
52 |
set horizontal-scroll-mode off |
95a79aeb9abb
Misc readline customisation.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
53
diff
changeset
|
53 |
|
95a79aeb9abb
Misc readline customisation.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
53
diff
changeset
|
54 |
# This variable, when set to `on', causes Readline to display an asterisk |
95a79aeb9abb
Misc readline customisation.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
53
diff
changeset
|
55 |
# ('*') at the start of history lines which have been modified. This variable |
95a79aeb9abb
Misc readline customisation.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
53
diff
changeset
|
56 |
# is 'off' by default. |
95a79aeb9abb
Misc readline customisation.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
53
diff
changeset
|
57 |
set mark-modified-lines off |
95a79aeb9abb
Misc readline customisation.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
53
diff
changeset
|
58 |
|
55
8fd48debf4cc
Point to 'C-x C-e' command in bash.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
54
diff
changeset
|
59 |
$if Bash |
8fd48debf4cc
Point to 'C-x C-e' command in bash.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
54
diff
changeset
|
60 |
# Invoke an editor on the current command line, and execute the result as |
8fd48debf4cc
Point to 'C-x C-e' command in bash.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
54
diff
changeset
|
61 |
# shell commands. Bash attempts to invoke $FCEDIT, $EDITOR, and emacs as the |
8fd48debf4cc
Point to 'C-x C-e' command in bash.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
54
diff
changeset
|
62 |
# editor, in that order. |
8fd48debf4cc
Point to 'C-x C-e' command in bash.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
54
diff
changeset
|
63 |
"\C-x\C-e": edit-and-execute-command |
8fd48debf4cc
Point to 'C-x C-e' command in bash.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
54
diff
changeset
|
64 |
$endif |
8fd48debf4cc
Point to 'C-x C-e' command in bash.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
54
diff
changeset
|
65 |
|
91
42abfd52d36c
Define my favorite Emacs key bindings.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
55
diff
changeset
|
66 |
# Define my favorite Emacs key bindings. |
159
022803a4d179
Terminal driver rebound some keys. See output 'stty -a'. I like original
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
143
diff
changeset
|
67 |
"\C-@": set-mark |
91
42abfd52d36c
Define my favorite Emacs key bindings.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
55
diff
changeset
|
68 |
"\C-w": kill-region |
92 | 69 |
"\M-w": copy-region-as-kill |
159
022803a4d179
Terminal driver rebound some keys. See output 'stty -a'. I like original
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
143
diff
changeset
|
70 |
"\M-/" dabbrev-expand |
91
42abfd52d36c
Define my favorite Emacs key bindings.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
55
diff
changeset
|
71 |
|
142
e77decd4520a
Ctrl+Left/Right to move by whole words.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
92
diff
changeset
|
72 |
# Ctrl+Left/Right to move by whole words. |
e77decd4520a
Ctrl+Left/Right to move by whole words.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
92
diff
changeset
|
73 |
"\e[1;5C": forward-word |
e77decd4520a
Ctrl+Left/Right to move by whole words.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
92
diff
changeset
|
74 |
"\e[1;5D": backward-word |
143
e78ca0a7e608
Ctrl+Backspace/Delete to delete whole words.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
142
diff
changeset
|
75 |
# Same with Shift pressed. |
142
e77decd4520a
Ctrl+Left/Right to move by whole words.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
92
diff
changeset
|
76 |
"\e[1;6C": forward-word |
e77decd4520a
Ctrl+Left/Right to move by whole words.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
92
diff
changeset
|
77 |
"\e[1;6D": backward-word |
e77decd4520a
Ctrl+Left/Right to move by whole words.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
92
diff
changeset
|
78 |
|
143
e78ca0a7e608
Ctrl+Backspace/Delete to delete whole words.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
142
diff
changeset
|
79 |
# Ctrl+Backspace/Delete to delete whole words. |
e78ca0a7e608
Ctrl+Backspace/Delete to delete whole words.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
142
diff
changeset
|
80 |
"\e[3;5~": kill-word |
e78ca0a7e608
Ctrl+Backspace/Delete to delete whole words.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
142
diff
changeset
|
81 |
"\C-_": backward-kill-word |
e78ca0a7e608
Ctrl+Backspace/Delete to delete whole words.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
142
diff
changeset
|
82 |
|
160
d45758677427
UP/DOWN filter history by typed string as prefix.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
159
diff
changeset
|
83 |
# UP/DOWN filter history by typed string as prefix. |
d45758677427
UP/DOWN filter history by typed string as prefix.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
159
diff
changeset
|
84 |
"\e[A": history-search-backward |
d45758677427
UP/DOWN filter history by typed string as prefix.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
159
diff
changeset
|
85 |
"\C-p": history-search-backward |
d45758677427
UP/DOWN filter history by typed string as prefix.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
159
diff
changeset
|
86 |
"\e[B": history-search-forward |
d45758677427
UP/DOWN filter history by typed string as prefix.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
159
diff
changeset
|
87 |
"\C-n": history-search-forward |
d45758677427
UP/DOWN filter history by typed string as prefix.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
159
diff
changeset
|
88 |
|
33
961fa02a30ff
Allow display and input russial letter in bash/rxvt on Cygwin.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
89 |
# Local Variables: |
961fa02a30ff
Allow display and input russial letter in bash/rxvt on Cygwin.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
90 |
# mode: shell-script |
961fa02a30ff
Allow display and input russial letter in bash/rxvt on Cygwin.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
91 |
# fill-column: 78 |
961fa02a30ff
Allow display and input russial letter in bash/rxvt on Cygwin.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
92 |
# End: |