summaryrefslogtreecommitdiff
path: root/.config
diff options
context:
space:
mode:
authorCian Bagshaw <cian@cianb.xyz>2024-09-25 23:27:23 +0100
committerCian Bagshaw <cian@cianb.xyz>2024-09-25 23:27:23 +0100
commit554ae71136359fa1b5c8b26af9a5a99dd748618f (patch)
tree714fce06f41c631dbf16d120d6ce4df2037dbb0c /.config
parentcd16a5154761b3c065de7e0c3a82730ee1a025b6 (diff)
downloaddotFiles-master.tar.bz2
dotFiles-master.zip
Added inputrc/readline configHEADmaster
Buffered line input using GNU Readline is now configured globally. Also, fixed Python Shell Readline history, so it is available for the current session, though still not saved after that.
Diffstat (limited to '.config')
-rw-r--r--.config/python2
-rw-r--r--.config/readline29
2 files changed, 30 insertions, 1 deletions
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