-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinputrc
71 lines (61 loc) · 1.71 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
##################################
#
# Author: Gustavo Yokoyama Ribeiro
# File: .inputrc
# Update: 20081027 15:20:38
# (C) Copyright 2010 Gustavo Yokoyama Ribeiro
# Licensed under CreativeCommons Attribution-ShareAlike 3.0 Unsupported
# http://creativecommons.org/licenses/by-sa/3.0/ for more info.
#
##################################
set editing-mode vi
$if mode=vi
set keymap vi-command
set keymap vi-insert
"\C-x ":glob-expand-word
"\C-xw":glob-complete-word
"\C-p":menu-complete-backward
"\C-n":menu-complete
"\e[Z":dynamic-complete-history
# any ! combinations will be auto-expanded when you hit space.
#Space:magic-space
"\C-@":magic-space
$endif
$if Bash
$endif
$if term=xterm
$endif
"\e[2~":overwrite-mode
"\e[3~":delete-char
"\e[7~":beginning-of-line
"\e[8~":end-of-line
"\e[B":history-search-forward
"\e[A":history-search-backward
"\C-l":clear-screen
# Completion Options
set completion-ignore-case on
# Exemplo: imagem => Imagem
set completion-map-case on
# Exemplo: lib-bla => lib_bla
set mark-symlinked-directories on
set show-all-if-ambiguous on
set show-all-if-unmodified on
set skip-completed-text on
set visible-stats on
set completion-prefix-display-length 2
# Exemplo:
#$ ls
#longFileNameLINUX-2.6.37-4 longFileNameLINUX-2.6.37-7 longFileNameLINUX-2.6.38-11 VeryCompliCATEDfileNAME.txt
#longFileNameLINUX-2.6.37-6 longFileNameLINUX-2.6.37-8 longFileNameLINUX-2.6.38-9
#$ ls long<TAB>
#...7-4 ...7-6 ...7-7 ...7-8 ...8-11 ...8-9
#$ ls longFileNameLINUX-2.6.3
# Useful stuff for UTF-8
set meta-flag on
set input-meta on
set output-meta on
set convert-meta off
# Adds punctuation as word delimiters
set bind-tty-special-chars off
set keymap vi
set bell-style none