necesita permiso de ejecucion para que funcione...
chmod +x loquesea
./loquesea
Código:
#!/bin/sh
select OPCION in "Borrar historial" "Editar historial" "ver historial" "ver historial numerado" "Salir";do
case $OPCION in
"Borrar historial")
rm $HOME/.bash_history
;;
"Editar historial")
nano $HOME/.bash_history
;;
"ver historial")
cat $HOME/.bash_history
;;
"ver historial numerado")
cat -n $HOME/.bash_history
;;
"Salir")
break;
;;
*)
echo $REPLY no aparece en el menu de opciones
;;
esac
done
si no queres borrar, podes limpiar el history con
echo "" > $HOME/.bash_history