iankelling.org
/
git
/
distro-setup
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
changes for buster linode
[distro-setup]
/
.inputrc
diff --git
a/.inputrc
b/.inputrc
index 76a38b2b04cb989520ef9e7cc72b8473410a427b..fba266ef0203f527f022a8a2397acdf98b670e67 100644
(file)
--- a/
.inputrc
+++ b/
.inputrc
@@
-24,7
+24,7
@@
set show-all-if-unmodified on
# nice in bash, but messes up completion in emacs shell
#set visible-stats on
# nice in bash, but messes up completion in emacs shell
#set visible-stats on
-set visible-stats off
mv f
+set visible-stats off
# turn off pager for completion
set page-completions off
# turn off pager for completion
set page-completions off
@@
-34,21
+34,26
@@
set page-completions off
# the trailing / and I have to hit <Tab> again. I don't like this.
set mark-symlinked-directories on
# the trailing / and I have to hit <Tab> again. I don't like this.
set mark-symlinked-directories on
-
-# makes the c-u keybind work.
-# perhaps other binds that didn't work would work with this.
-# todo, try it out
-set bind-tty-special-chars off
+# i had this set in the past to make c-u work, but it doesn't seem to be needed now.
+# not sure if it affected any other keybinds.
+#set bind-tty-special-chars off
# key bindings:
# key bindings:
+# note c-i/m/h/w are unusable, duplicating tab, enter, ctrl-del or something, backspace
+# C-x would be hard to rebind because emacs.
+
"\C-q": exchange-point-and-mark
"\C-q": exchange-point-and-mark
-"\C-w": kill-region
-"\C-e": yank-last-arg
+# default not bound
+
+"\C-e": kill-region
+# default M-S-3
"\C-a": insert-comment
"\C-a": insert-comment
-"\C-s": yank-nth-arg
+
+# default is C-M-y
+"\e,": yank-nth-arg
"\C-f": menu-complete
"\C-b": menu-complete-backward
"\C-f": menu-complete
"\C-b": menu-complete-backward
@@
-63,27
+68,30
@@
set bind-tty-special-chars off
Control-Space: set-mark
Control-Space: set-mark
-
+# default is C-M-e which kinda sucks
"\C-t": shell-expand-line
"\C-t": shell-expand-line
-#C-RETURN: undo
-
# ctrl-delete
"\e[3;5~": kill-word
# ctrl-delete
"\e[3;5~": kill-word
-
+# default is C-x C-e
"\C-g": edit-and-execute-command
"\C-g": edit-and-execute-command
+# default is C-y
"\C-v": yank
"\C-v": yank
+# default is C-M-y
"\C-\M-v": yank-pop
"\C-\M-v": yank-pop
+# by default, not bound
"\C-p": dabbrev-expand # similar menu-complete, except for commands in history
"\C-p": dabbrev-expand # similar menu-complete, except for commands in history
+
+# default is C-q. this matches emacs.
"\C-\M-q": quoted-insert
"\C-\M-q": quoted-insert
+# default is C-x C-u
"\C-d": undo
"\C-d": undo
-"\C-u": backward-kill-word
@@
-94,11
+102,6
@@
Control-Space: set-mark
####### commented out stuff ###########
####### commented out stuff ###########
-# in bash, bind -p helped me figure out how to make some binds work
-# i don't see this documented anywhere. not sure where I got it from but it doesn't work now
-#"\C-p": paste-from-clipboard
-
-
# vi mode settings and observatoins
# double pound indicates it is only commented because I am not using vi mode
##set editing-mode vi
# vi mode settings and observatoins
# double pound indicates it is only commented because I am not using vi mode
##set editing-mode vi
@@
-106,9
+109,6
@@
Control-Space: set-mark
# completion from history. how cool
##Control-SPACE: dynamic-complete-history
# completion from history. how cool
##Control-SPACE: dynamic-complete-history
-# if this is a command in history, execute it and bring up the next command in history.
-##"\C-o": operate-and-get-next
-
# this is just kinda cool to show off:
##"\M-{": complete-into-braces
# this is just kinda cool to show off:
##"\M-{": complete-into-braces