Skip to content

Instantly share code, notes, and snippets.

@ojgarciab
Created April 24, 2024 06:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ojgarciab/785db591ee62d68d86905b08b19f224a to your computer and use it in GitHub Desktop.
Save ojgarciab/785db591ee62d68d86905b08b19f224a to your computer and use it in GitHub Desktop.
Activar la búsqueda del historial con las teclas Re Pág (page down) y Av Pág (page up)

En el archivo /etc/inputrc aparecen estas líneas comentadas:

# alternate mappings for "page up" and "page down" to search the history
# "\e[5~": history-search-backward
# "\e[6~": history-search-forward

Para descomentarlas basta con teclear:

sed -i -re 's/^# ?(.*: ?history-search-.*)$/\1/g' /etc/inputrc

Tras lo cual la búsqueda en el historial quedará activada.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment