# enter a few characters and press UpArrow/DownArrow # to search backwards/forwards through the history if [ -t 1 ]; then bind '"":history-search-backward' bind '"":history-search-forward' fi