Encontré este comando útil bind -x '"\C-r"':resetpara borrar el terminal, pero quería hacer un script bash simple:
#!/bin/bash
bind -x '"\C-r"':reset
salida:
alfred@alfred-laptop:~/bash$ ./bind
./bind: line 2: bind: warning: line editing not enabled
¿Podría alguien explicarme:
- ¿Cómo puedo arreglar esto?
- Que
warning: line editing not enabledsignifica
set -o emacso set -o vien su script (antes del bind, por supuesto).
echo -e '\0033\0143'gracias a superuser.com/questions/122911/bash-reset-and-clear-commands/… , pero todavía me gustaría saber qué significa este error y cómo solucionarlo. Muchas gracias.