1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,24 @@ |
1 |
+# Unlimited history. |
|
2 |
+HISTSIZE="-1" |
|
3 |
+ |
|
4 |
+# Do not save commands starting with a space. Only save the last usage of a |
|
5 |
+# duplicate command. |
|
6 |
+HISTCONTROL="ignorespace:ignoredups:erasedups" |
|
7 |
+ |
|
8 |
+# Place history expansions into the editing buffer instead of executing them. |
|
9 |
+shopt -s histverify |
|
10 |
+ |
|
11 |
+# Reload failed history expansions. |
|
12 |
+shopt -s histreedit |
|
13 |
+ |
|
14 |
+# Append instead of replace. |
|
15 |
+shopt -s histappend |
|
16 |
+ |
|
17 |
+# Save all lines of multi-line command. |
|
18 |
+shopt -s cmdhist |
|
19 |
+ |
|
20 |
+# Do not replace newlines with semicolons. |
|
21 |
+shopt -s lithist |
|
22 |
+ |
|
23 |
+# Automatically perform history expansion when space is pressed. |
|
24 |
+bind 'Space: magic-space' |