/[baselayout]/trunk/etc.Linux/inputrc
Gentoo

Contents of /trunk/etc.Linux/inputrc

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3209 - (hide annotations) (download)
Sun Dec 22 12:21:15 2013 UTC (8 months, 3 weeks ago) by vapier
File size: 2163 byte(s)
add tip about using ~/.inputrc
1 uberlord 2547 # /etc/inputrc: initialization file for readline
2     #
3     # For more information on how this file works, please see the
4     # INITIALIZATION FILE section of the readline(3) man page
5     #
6     # Quick dirty little note:
7     # To get the key sequence for binding, you can abuse bash.
8     # While running bash, hit CTRL+V, and then type the key sequence.
9     # So, typing 'ALT + left arrow' in Konsole gets you back:
10     # ^[[1;3D
11     # The readline entry to make this skip back a word will then be:
12     # "\e[1;3D" backward-word
13     #
14 vapier 3209 # Customization note:
15     # You don't need to put all your changes in this file. You can create
16     # ~/.inputrc which starts off with the line:
17     # $include /etc/inputrc
18     # Then put all your own stuff after that.
19     #
20 uberlord 2547
21     # do not bell on tab-completion
22     #set bell-style none
23    
24     set meta-flag on
25     set input-meta on
26     set convert-meta off
27     set output-meta on
28    
29     # Completed names which are symbolic links to
30     # directories have a slash appended.
31     set mark-symlinked-directories on
32    
33     $if mode=emacs
34    
35     # for linux console and RH/Debian xterm
36 vapier 3111 # allow the use of the Home/End keys
37 uberlord 2547 "\e[1~": beginning-of-line
38     "\e[4~": end-of-line
39 vapier 3173 # map "page up" and "page down" to search history based on current cmdline
40 uberlord 2547 "\e[5~": history-search-backward
41     "\e[6~": history-search-forward
42 vapier 3111 # allow the use of the Delete/Insert keys
43 uberlord 2547 "\e[3~": delete-char
44     "\e[2~": quoted-insert
45    
46 vapier 3173 # gnome / others (escape + arrow key)
47 uberlord 2547 "\e[5C": forward-word
48     "\e[5D": backward-word
49     # konsole / xterm / rxvt (escape + arrow key)
50     "\e\e[C": forward-word
51     "\e\e[D": backward-word
52 vapier 3173 # gnome / konsole / others (control + arrow key)
53     "\e[1;5C": forward-word
54     "\e[1;5D": backward-word
55 uberlord 2547 # aterm / eterm (control + arrow key)
56     "\eOc": forward-word
57     "\eOd": backward-word
58    
59 vapier 3173 # konsole (alt + arrow key)
60     "\e[1;3C": forward-word
61     "\e[1;3D": backward-word
62    
63 vapier 3208 # Chromebooks remap alt + backspace so provide alternative (alt + k)
64     "\ek": backward-kill-word
65    
66 uberlord 2547 $if term=rxvt
67     "\e[8~": end-of-line
68     $endif
69    
70     # for non RH/Debian xterm, can't hurt for RH/Debian xterm
71     "\eOH": beginning-of-line
72     "\eOF": end-of-line
73    
74     # for freebsd console
75     "\e[H": beginning-of-line
76     "\e[F": end-of-line
77     $endif
78    
79     # fix Home and End for German users
80     "\e[7~": beginning-of-line
81     "\e[8~": end-of-line

  ViewVC Help
Powered by ViewVC 1.1.20