.inputrc

Wed, 10 Aug 2016 07:46:49 -0400

author
Meredith Howard <mhoward@roomag.org>
date
Wed, 10 Aug 2016 07:46:49 -0400
changeset 368
91d4fb4e0a42
parent 176
a57e2b17ad70
child 782
a387569893af
permissions
-rw-r--r--

improve text editing experience?

176
a57e2b17ad70 add .inputrc
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
1 # Two escapes clear command line.
a57e2b17ad70 add .inputrc
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
2 "\e\e": "\C-a\C-k"
a57e2b17ad70 add .inputrc
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
3
a57e2b17ad70 add .inputrc
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
4 # Tab to menu complete
a57e2b17ad70 add .inputrc
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
5 # "\t": menu-complete
a57e2b17ad70 add .inputrc
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
6
a57e2b17ad70 add .inputrc
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
7 # Incremental searching with Up and Down and Left and Right
a57e2b17ad70 add .inputrc
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
8
a57e2b17ad70 add .inputrc
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
9 $if mode=emacs
a57e2b17ad70 add .inputrc
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
10 "\e[A": history-search-backward
a57e2b17ad70 add .inputrc
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
11 "\e[B": history-search-forward
a57e2b17ad70 add .inputrc
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
12 "\e\e[C": forward-word
a57e2b17ad70 add .inputrc
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
13 "\e\e[D": backward-word
a57e2b17ad70 add .inputrc
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
14 $endif
a57e2b17ad70 add .inputrc
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
15
a57e2b17ad70 add .inputrc
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
16 set completion-ignore-case On
a57e2b17ad70 add .inputrc
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
17 #set completion-prefix-display-length 2
a57e2b17ad70 add .inputrc
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
18 set expand-tilde on
a57e2b17ad70 add .inputrc
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
19 set mark-directories on
a57e2b17ad70 add .inputrc
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
20 set show-all-if-ambiguous on
a57e2b17ad70 add .inputrc
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
21 set visible-stats on
a57e2b17ad70 add .inputrc
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
22
a57e2b17ad70 add .inputrc
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
23 set bell-style off
a57e2b17ad70 add .inputrc
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
24
a57e2b17ad70 add .inputrc
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
25 set meta-flag on
a57e2b17ad70 add .inputrc
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
26 set input-meta on
a57e2b17ad70 add .inputrc
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
27 set convert-meta off
a57e2b17ad70 add .inputrc
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
28 set output-meta on
a57e2b17ad70 add .inputrc
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
29
a57e2b17ad70 add .inputrc
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
30 $if Bash
a57e2b17ad70 add .inputrc
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
31 #do history expansion when space entered
a57e2b17ad70 add .inputrc
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
32 Space: magic-space
a57e2b17ad70 add .inputrc
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
33 $endif
a57e2b17ad70 add .inputrc
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
34
a57e2b17ad70 add .inputrc
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
35 $include /etc/inputrc
a57e2b17ad70 add .inputrc
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
36

mercurial