Skip to content

inputrc

Manually

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

Manually with checking

grep history-search-backward ~/.inputrc -q 2>/dev/null || echo "\"\e[A\":history-search-backward" >> ~/.inputrc
grep history-search-forward ~/.inputrc -q 2>/dev/null || echo "\"\e[B\":history-search-forward" >> ~/.inputrc