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 superuser.com/questions/122911/bash-reset-and-clear-commands/…, but I still would like to know what this error means and how to fix this. Many thanks. – alfredwesterveld Feb 1 '11 at 1:55