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

Contents of /trunk/etc.Linux/inputrc

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2547 - (show annotations) (download)
Thu Apr 5 11:18:42 2007 UTC (7 years, 3 months ago) by uberlord
File size: 1658 byte(s)
    Rewrite the core parts in C. We now provide librc so other programs can
    query runlevels, services and state without using bash. We also provide
    libeinfo so other programs can easily use our informational functions.

    As such, we have dropped the requirement of using bash as the init script
    shell. We now use /bin/sh and have strived to make the scripts as portable
    as possible. Shells that work are bash and dash. busybox works provided
    you disable s-s-d. If you have WIPE_TMP set to yes in conf.d/bootmisc you
    should disable find too.
    zsh and ksh do not work at this time.

    Networking support is currently being re-vamped also as it was heavily bash
    array based. As such, a new config format is available like so
    config_eth0="1.2.3.4/24 5.6.7.8/16"
    or like so
    config_eth0="'1.2.3.4 netmask 255.255.255.0' '5.6.7.8 netmask 255.255.0.0'"

    We will still support the old bash array format provided that /bin/sh IS
    a link it bash.

    ChangeLog for baselayout-1 can be found in our SVN repo.
1 # /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
15 # do not bell on tab-completion
16 #set bell-style none
17
18 set meta-flag on
19 set input-meta on
20 set convert-meta off
21 set output-meta on
22
23 # Completed names which are symbolic links to
24 # directories have a slash appended.
25 set mark-symlinked-directories on
26
27 $if mode=emacs
28
29 # for linux console and RH/Debian xterm
30 "\e[1~": beginning-of-line
31 "\e[4~": end-of-line
32 #"\e[5~": beginning-of-history
33 #"\e[6~": end-of-history
34 "\e[5~": history-search-backward
35 "\e[6~": history-search-forward
36 "\e[3~": delete-char
37 "\e[2~": quoted-insert
38
39 # gnome-terminal (escape + arrow key)
40 "\e[5C": forward-word
41 "\e[5D": backward-word
42 # konsole / xterm / rxvt (escape + arrow key)
43 "\e\e[C": forward-word
44 "\e\e[D": backward-word
45 # konsole (alt + arrow key)
46 "\e[1;3C": forward-word
47 "\e[1;3D": backward-word
48 # aterm / eterm (control + arrow key)
49 "\eOc": forward-word
50 "\eOd": backward-word
51
52 $if term=rxvt
53 "\e[8~": end-of-line
54 $endif
55
56 # for non RH/Debian xterm, can't hurt for RH/Debian xterm
57 "\eOH": beginning-of-line
58 "\eOF": end-of-line
59
60 # for freebsd console
61 "\e[H": beginning-of-line
62 "\e[F": end-of-line
63 $endif
64
65 # fix Home and End for German users
66 "\e[7~": beginning-of-line
67 "\e[8~": end-of-line

  ViewVC Help
Powered by ViewVC 1.1.20