summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.bashrc3
-rw-r--r--.config/python2
-rw-r--r--.config/readline29
-rw-r--r--.profile1
4 files changed, 31 insertions, 4 deletions
diff --git a/.bashrc b/.bashrc
index c68d549..318535f 100644
--- a/.bashrc
+++ b/.bashrc
@@ -21,9 +21,6 @@ man() {
21 command man "$@" 21 command man "$@"
22} 22}
23 23
24# vim mode
25set -o vi
26
27# disable history 24# disable history
28unset HISTFILE 25unset HISTFILE
29 26
diff --git a/.config/python b/.config/python
index e026454..94a4e40 100644
--- a/.config/python
+++ b/.config/python
@@ -3,4 +3,4 @@
3 3
4# disable history 4# disable history
5import readline 5import readline
6readline.set_auto_history(False) 6readline.write_history_file = lambda *args: None
diff --git a/.config/readline b/.config/readline
new file mode 100644
index 0000000..39a869f
--- /dev/null
+++ b/.config/readline
@@ -0,0 +1,29 @@
1# vim: filetype=readline
2
3$include /etc/inputrc
4
5set editing-mode vi
6set keyseq-timeout 250
7
8set colored-stats
9set colored-completion-prefix
10
11set completion-ignore-case
12set completion-map-case
13set mark-symlinked-directories
14set show-all-if-ambiguous
15set blink-matching-paren
16set skip-completed-text
17set revert-all-at-newline
18
19"jj": "\e"
20
21Control-l: clear-screen
22Control-w: clear-screen line
23Control-a: beginning-of-line
24Control-e: end-of-line
25
26Control-k: history-search-backward
27Control-j: history-search-forward
28Control-n: menu-complete
29Control-b: menu-complete-backward
diff --git a/.profile b/.profile
index 1b88f11..7bdfe10 100644
--- a/.profile
+++ b/.profile
@@ -22,6 +22,7 @@ export XDG_STATE_HOME="$HOME/.local/state"
22export XDG_RUNTIME_DIR="/run/user/$UID" 22export XDG_RUNTIME_DIR="/run/user/$UID"
23 23
24# config file locations 24# config file locations
25export INPUTRC="$XDG_CONFIG_HOME/readline"
25export VIMINIT="source $XDG_CONFIG_HOME/vim" 26export VIMINIT="source $XDG_CONFIG_HOME/vim"
26export XINITRC="$XDG_CONFIG_HOME/x11" 27export XINITRC="$XDG_CONFIG_HOME/x11"
27export NOTMUCH_CONFIG="$XDG_CONFIG_HOME/notmuch" 28export NOTMUCH_CONFIG="$XDG_CONFIG_HOME/notmuch"