-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinputrc
52 lines (50 loc) · 1.5 KB
/
inputrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# vi to be the default editor for readline
set editing-mode vi
# vi settings
$if mode=vi
# normal mode
set keymap vi-command
"gg": beginning-of-history
"h": backward-char
"l": forward-char
"G": end-of-history
"~~": capitalize-word
# custom commands
## >>> configuration commands >>>
# edit base rc file '~/.bashrc'
"eb": "i$EDITOR $HOME/.bashrc\r\e"
### edit input rc
"ei": "i$EDITOR $HOME/.inputrc\r\e"
### source input rc
"si": "ibind -f $HOME/.inputrc\r\e"
## cd dotfiles
"cdd": "icd $HOME/.dotfiles\r\e"
## dl: dailylog see $HOME/.dotfiles/bash_functions and $HOME/.dotfiles/bash_aliases
"dl": "i dl\r\e"
## bash: find bash functions
"ff": "i findbashfunctions\r\e"
## bash: edit history - see .bashrc
"ebh": "iebh\r\e"
# source base rc file '~/.bashrc'
"sbrc": "isource $HOME/.bashrc\r\e"
# tmux
"stm": "itmux source-file $HOME/.tmux.conf\r\e"
"etm": "i$EDITOR $HOME/.tmux.conf\r\e"
"tn": "itmux new\r\e"
# vimrc
"ev": "i$EDITOR $HOME/.vim_runtime/nvim/init.lua\r\e"
# cd to vimrc
"cdv": "icd $HOME/.vim_runtime\r\e"
# dailylog
"dl": "idl\r\e"
# see ANSI control-code escape sequences corresponding to keys
"keys": "iinfocmp -L -1"
"keysx": "iinfocmp -L -1 xterm"
# insert mode
set keymap vi-insert
"jk": vi-movement-mode
"\e[A": history-search-backward
"\e[B": history-search-forward
set show-all-if-ambiguous on
set completion-ignore-case on
$endif