When I paste this and then source the file, I get:
-bash: \e[A:: command not found -bash: \e[B:: command not found
edit: thanks for the responses below. Learn something new every day :)
-bash: \e[A:: command not found -bash: \e[B:: command not found
edit: thanks for the responses below. Learn something new every day :)
bind '"\e[A": history-search-backward' # up-arrow
bind '"\e[B": history-search-forward' # down-arrow