-
Notifications
You must be signed in to change notification settings - Fork 6
/
.inputrc
52 lines (42 loc) · 1.56 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
52
# Space after a history copmpletion will expand it in-place
$if Bash
Space: magic-space
$endif
# /etc/inputrc - global inputrc for libreadline
# See readline(3readline) and `info rluserman' for more information.
# Be 8 bit clean.
set input-meta on
set output-meta on
# To allow the use of 8bit-characters like the german umlauts, uncomment
# the line below. However this makes the meta key not work as a meta key,
# which is annoying to those which don't need to type in 8-bit characters.
set convert-meta off
# see /usr/share/doc/bash/inputrc.arrows for other codes of arrow keys
# do not bell on tab-completion
set bell-style none
# some defaults / modifications for the emacs mode
$if mode=emacs
# Jump by whitespace delimiters with vim-ish keys
# ctrl-alt-{arrow}
"[1;7D": shell-backward-word
"[1;7C": shell-forward-word
# Literal mappings for Ctrl-left-arrow and Ctrl-right-arrow for
# shifting cursor by word else Tmux gets weird
"\e[1;5C": forward-word
"\e[1;5D": backward-word
"\e[5C": forward-word
"\e[5D": backward-word
"\e\e[C": forward-word
"\e\e[D": backward-word
# Literal mappings for the use of the Home/End keys else Tmux gets weird
"\e[1~": beginning-of-line
"\e[4~": end-of-line
# Jump up and down wrapped line in a manner almost similar to Vim
"\C-gk": previous-screen-line
"\C-g\C-k": previous-screen-line
"\C-gj": next-screen-line
"\C-g\C-j": next-screen-line
# Jump to beginning or end of lines with these keys that usually jump by character
"\C-f": end-of-line
"\C-b": beginning-of-line
$endif