cat >> ~/.inputrc <<'EOF' "\e[A": history-search-backward "\e[B": history-search-forward EOF # then bind -f ~/.inputrc