Skip to content

Commit

Permalink
bash - add keybindings with inputrc file
Browse files Browse the repository at this point in the history
  • Loading branch information
VonHeikemen committed Jul 17, 2020
1 parent f768e1f commit 04b985e
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .inputrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Be quiet
set bell-style none

# Perform file completion in a case insensitive fashion
set completion-ignore-case on

# Immediately add a trailing slash when autocompleting symlinks to directories
set mark-symlinked-directories on

# Enable history expansion with space
# E.g. typing !!<space> will replace the !! with your last command
Space: magic-space

TAB: menu-complete

# Alt + k
"\ek": history-search-backward

# Alt + j
"\ej": history-search-forward

# Alt + h
"\eh": backward-char

# Alt + l
"\el": forward-char

# Up Arrow
"\e[A": history-search-backward

# Down Arrow
"\e[B": history-search-forward

# Right Arrow
"\e[C": forward-char

# Left Arrow
"\e[D": backward-char

"\C-xa": alias-expand-line

0 comments on commit 04b985e

Please sign in to comment.