3 ms·
Try this in your .inputrc: # Bind the up arrow to history search, instead of history step "\e[A": history-search-backward "\e[B": history-search-fo
by pavel_lishin 14y ago
Try this in your .inputrc:
# Bind the up arrow to history search, instead of history step
"\e[A": history-search-backward
"\e[B": history-search-forward
No more "^rls" to search for ls in your bash history; just type "ls" and start hitting the up arrow.
- dunk010 14y agoThis is the best tip ever.
- nathanstitt 14y agoThanks for the suggestion. I used to have a very customized .bashrc with nice little things like that, but have decided to stick with standard stuff for things that work off of muscle memory. I got tired of sshing into a new box and half the things I'd type wouldn't work properly until I remembered to copy my settings files over, which seemed more trouble than it was worth for a short-lived s3 instance. That's why I was excited to discover ctrl-r. It's a built-in method of searching history that I can remember and it'll work everywhere.
- pavel_lishin 14y ago> I got tired of sshing into a new box ... I've got a public repo of my dotfiles, so the first thing I typically do is "git clone git@github.com:pavellishin/dotfiles.git && cd dotfiles && ./install.sh" After that, I launch tmux, and it's all hunky dory.
- nathanstitt 14y agoHeh.. right after I posted that comment, my thought was: 'you know - the correct answer here would have been to make an Uber command that would suck all the configs in and install them'. Thanks for giving me the push to do so. I think I'll take your suggestion but put the command on a site somewhere so I can simply 'curl https://foo.bar/configs https://foo.bar/configs | bash'