aboutsummaryrefslogtreecommitdiff
path: root/bash/dot-inputrc
blob: f34320af41d569b99c3ef6218e57daa84c4e20cf (plain)
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
$include /etc/inputrc

$if Bash
  $if mode=emacs
    # edit the path
    "\C-xp": "PATH=${PATH}\e\C-e\C-a\ef\C-f"
    # prepare to type a quoted word --
    # insert open and close double quotes
    # and move to just after the open quote
    "\C-x\"": "\"\"\C-e\C-b"
    # Quote the current or previous word
    "\C-xq": "\eb\"\ef\""
    # Add a binding to refresh the line, which is unbound
    "\C-xr": redraw-current-line
    # Add a binding to edit the line in vim
    "\C-xe": edit-and-execute-command
  $endif
$endif

set bell-style none

set completion-ignore-case on
set completion-query-items 150

set mark-symlinked-directories on
set match-hidden-files off
set page-completions off

set visible-stats on
set colored-stats on

# Be more intelligent when autocompleting by also looking at the text after
# the cursor. For example, when the current line is "cd ~/src/mozil", and
# the cursor is on the "z", pressing Tab will not autocomplete it to "cd
# ~/src/mozillail", but to "cd ~/src/mozilla". (This is supported by the
# Readline used by Bash 4.)
set skip-completed-text on