Last active
September 26, 2015 08:08
-
-
Save bonyiii/1066673 to your computer and use it in GitHub Desktop.
ctrl + up and ctrl + down in history
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
To set up search history backward in inputrc add these settings: | |
This will add you ctrl + up and ctrl + down to complete command partial. But if you change your mind and want to jump different command you can simply do it by using up and down without the ctrl. | |
/etc/inputrc: | |
"\e[1;5A": history-search-backward | |
"\e[1;5B": history-search-forward | |
http://www.linuxquestions.org/questions/linux-desktop-74/how-to-search-command-history-beginning-with-what-you-type-789471/ | |
http://forums.opensuse.org/archives-software/337292-trivial-bash-question.html | |
Notes for myself: | |
Az /etc/inputrc -be kell ezt a két sort beszúrni és legalábbis az általam használt /bin/bash -ban tökéletesen megy, hogy csak azokat a history -kat ajánlja fel amiknek az eleje egyezik:1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment