3 ms·
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
by bherms 13y ago
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 :)
- jimrandomh 13y agoIt goes in ~/.inputrc, the configuration file for GNU readline. Those aren't shell commands.
- raylu 13y ago.inputrc. And don't source it, just start a new bash.
- MostAwesomeDude 13y agoinputrc is not to be sourced; it's read by readline when the shell starts. You need to restart your shell.
- sikhnerd 13y agoCTRL-x-r will reload it as well, without having to restart your shell
- myhf 13y agoIf you really want to put them in .bashrc instead of .inputrc, you can source readline directives with the 'bind' command, like so: bind '"\e[A": history-search-backward' # up-arrow bind '"\e[B": history-search-forward' # down-arrow