forked from VonHeikemen/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bash - add keybindings with inputrc file
- Loading branch information
1 parent
f768e1f
commit 04b985e
Showing
1 changed file
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |