Browse code

inputrc - v0.0

Fred authored on28/02/2016 22:43:20
Showing1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,111 @@
1
+# Title: .inputrc
2
+# Author: Frédéric CHEVALIER <f15.chevalier@gmail.com>
3
+# Version: 0.0
4
+# Created in: 2016-02-28
5
+# Modified in:
6
+
7
+
8
+
9
+#==========#
10
+# Comments #
11
+#==========#
12
+
13
+# /etc/inputrc - global inputrc for libreadline
14
+# See readline(3readline) and `info rluserman' for more information.
15
+
16
+
17
+
18
+#==========#
19
+# Versions #
20
+#==========#
21
+
22
+# v0.0 - 2016-02-28: creation
23
+
24
+
25
+
26
+#==================#
27
+# General Settings #
28
+#==================#
29
+
30
+# Be 8 bit clean
31
+set input-meta on
32
+set output-meta on
33
+
34
+# To allow the use of 8bit-characters like the german umlauts, uncomment
35
+# the line below. However this makes the meta key not work as a meta key,
36
+# which is annoying to those which don't need to type in 8-bit characters.
37
+
38
+# set convert-meta off
39
+
40
+# Try to enable the application keypad when it is called.  Some systems
41
+# need this to enable the arrow keys.
42
+# set enable-keypad on
43
+
44
+# see /usr/share/doc/bash/inputrc.arrows for other codes of arrow keys
45
+
46
+# Do not bell on tab-completion
47
+set bell-style none
48
+set bell-style visible
49
+
50
+
51
+# Completion Options
52
+set page-completions on
53
+set completion-ignore-case on
54
+set completion-query-items 200
55
+set show-all-if-ambiguous off
56
+set show-all-if-unmodified on
57
+set skip-completed-text on
58
+set visible-stats on
59
+
60
+
61
+
62
+#=============#
63
+# Key binding #
64
+#=============#
65
+
66
+# Some defaults / modifications for the emacs mode
67
+$if mode=emacs
68
+
69
+# Allow the use of the Home/End keys
70
+"\e[1~": beginning-of-line
71
+"\e[4~": end-of-line
72
+
73
+# Allow the use of the Delete/Insert keys
74
+"\e[3~": delete-char
75
+"\e[2~": quoted-insert
76
+
77
+# Mappings for "page up" and "page down" to step to the beginning/end of the history
78
+"\e[5~": beginning-of-history
79
+"\e[6~": end-of-history
80
+
81
+# Alternate mappings for "page up" and "page down" to search the history
82
+"\e[1;5A": history-search-backward
83
+"\e[1;5B": history-search-forward
84
+
85
+# Mappings for Ctrl-left-arrow and Ctrl-right-arrow for word moving
86
+"\e[1;5C": forward-word
87
+"\e[1;5D": backward-word
88
+"\e[5C": forward-word
89
+"\e[5D": backward-word
90
+"\e\e[C": forward-word
91
+"\e\e[D": backward-word
92
+
93
+$if term=rxvt
94
+"\e[8~": end-of-line
95
+"\eOc": forward-word
96
+"\eOd": backward-word
97
+$endif
98
+
99
+# For non RH/Debian xterm, can't hurt for RH/Debian xterm
100
+# "\eOH": beginning-of-line
101
+# "\eOF": end-of-line
102
+
103
+# For freebsd console
104
+# "\e[H": beginning-of-line
105
+# "\e[F": end-of-line
106
+
107
+$if Bash
108
+ Space: magic-space
109
+$endif
110
+
111
+$endif