Created
January 4, 2013 20:56
-
-
Save carlosfilho88/4455929 to your computer and use it in GitHub Desktop.
bash autocomplete
This file contains hidden or 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
# do not make noise | |
set bell-style none | |
# Don't echo ^C etc (new in bash 4.1) | |
# Note this only works for the command line itself, | |
# not if already running a command. | |
set echo-control-characters off | |
# Note this must be done before the settings below | |
# Caveats: | |
# Broken on bash 3.2 (can't move cursor to EOL). | |
# ^L only works in command mode and when line is empty | |
#set editing-mode vi | |
$if Bash | |
# F10 toggles mc on and off | |
# Note Ctrl-o toggles panes on and off in mc | |
"\e[21~": "mc\C-M" | |
# do history expansion when space entered | |
Space: magic-space | |
$endif | |
# By default up/down are bound to previous-history | |
# and next-history respectively. The following does the | |
# same but gives the extra functionality where if you | |
# type any text (or more accurately, if there is any text | |
# between the start of the line and the cursor), | |
# the subset of the history starting with that text | |
# is searched (like 4dos for e.g.). | |
# Note to get rid of a line just Ctrl-C | |
"\e[B": history-search-forward | |
"\e[A": history-search-backward | |
# Include system wide settings which are ignored | |
# by default if one has their own .inputrc | |
$include /etc/inputrc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment