I found this helpful command bind -x '"\C-r"':reset to clear the terminal but I wanted to make a simple bash script:
#!/bin/bash
bind -x '"\C-r"':reset
output:
alfred@alfred-laptop:~/bash$ ./bind
./bind: line 2: bind: warning: line editing not enabled
Could someone please explain:
- How can I fix this?
- What does
warning: line editing not enabledmean?
echo -e '\0033\0143'thanks to http://superuser.com/questions/122911/bash-reset-and-clear-commands/123007#123007, but I still would like to know what this error means and how to fix this. Many thanks. – Alfred Feb 01 '11 at 01:55set -o emacsorset -o viinto your script (before thebind, of course). – Elmar Zander Nov 27 '15 at 17:01