Publi

Búsquedas rápidas en el historial de BASH

2683642114_bba3d6383e
Cuando pasamos mucho tiempo en escribiendo en terminal, a veces tenemos la necesidad de repetir algo que escribimos en el pasado. Puede que estemos compilando algún programa, o haciendo un ./configure e instalando dependencias de un programa…
Muchas distribuciones lo tienen por defecto (por ejemplo Gentoo), pero otras muchas (Ubuntu, Mandriva, ArchLinux…) no lo tienen; se trata de activar las teclas de Avance y Retroceso de página para hacer búsquedas en nuestro historial.
Esto sirve, por ejemplo para que, si escribimos algunas letras de una orden que enviamos en el pasado, y pulsemos RePag nos encuentre aquellas órdenes que enviamos en el pasado y nos ahorre unas cuantas pulsaciones de teclado.

Lo que debemos hacer es editar el archivo /etc/inputrc, muchas distribuciones traen ciertas líneas parecidas, por lo que si vemos alguna línea que empiece por «\e[5~» o «\e[6~» deberíamos comentarla (con #) o borrarla; y tras ello introducir lo siguiente:

«\e[5~»: history-search-backward
«\e[6~»: history-search-forward

Para mí, es la forma más cómoda de trabajar.

Foto: Liamdunn (Flickr)

También podría interesarte....

There are 20 comments left Ir a comentario

  1. Pingback: Bitacoras.com /

  2. the baby in yellow /
    Usando Google Chrome Google Chrome 118.0.0.0 en Windows Windows NT

    I appreciate you providing this insightful information; I believe it will be beneficial to everyone.

  3. 스포츠토토 /
    Usando Google Chrome Google Chrome 119.0.0.0 en Windows Windows NT

    Excellent post. I waѕ checking constantlү this blog ɑnd I am inspired! 스포츠토토

  4. 토토사이트 /
    Usando Google Chrome Google Chrome 119.0.0.0 en Windows Windows NT

    hiya! This weblog post could not be written lots better! Looking at this put up reminds me of my preceding roommate! He constantly kept speakme approximately this. 토토사이트

  5. 스포츠토토 /
    Usando Google Chrome Google Chrome 119.0.0.0 en Windows Windows NT

    This is my first time I visit here. I found so many engaging stuff in your blog, particularly its conversation. 스포츠토토

  6. 토토사이트 /
    Usando Google Chrome Google Chrome 119.0.0.0 en Windows Windows NT

    I have read so many articles concerning the blogger lovers however this article is actually a pleasant article, keep it up. 토토사이트

  7. 스포츠토토사이트 /
    Usando Google Chrome Google Chrome 119.0.0.0 en Windows Windows NT

    I have to thank you for the efforts you’ve put in writing this blog. I’m hoping to check out the same high-grade blog posts by you later on as well. 스포츠토토사이트

  8. 메이저사이트 /
    Usando Google Chrome Google Chrome 119.0.0.0 en Windows Windows NT

    Always maintain on the great operate. I extra increase your RSS feed to my MSN News Reader 메이저사이트

  9. 메이저사이트토토사이트추천 /
    Usando Google Chrome Google Chrome 119.0.0.0 en Windows Windows NT

    Most of these untrue states usually are major, effective visualize and for that reason 토토사이트추천

  10. 토토사이트검증 /
    Usando Google Chrome Google Chrome 119.0.0.0 en Windows Windows NT

    I have to admit that i sometimes get bored to read the whole thing but i think you can add some value 토토사이트검증

  11. 메이저사이트 /
    Usando Google Chrome Google Chrome 119.0.0.0 en Windows Windows NT

    Great goօds fгom you, man. I hage keeρ in mind youг stuff рrevious tо and ʏߋu aгe simply extremely fantastic. 메이저사이트

  12. 메이저사이트 /
    Usando Google Chrome Google Chrome 119.0.0.0 en Windows Windows NT

    I most clearly will ahead this statistics to him. Pretty sure he’s going to have a outstanding examine. I respect you for sharing! Views dwelling police force heard jokes additionally. Was are delightful solicitousness disclosed series man. 메이저사이트

  13. 토토사이트 /
    Usando Google Chrome Google Chrome 119.0.0.0 en Windows Windows NT

    Great info! I recently came across your blog and have been reading along. I thought I would leave my first comment. 토토사이트

  14. 먹튀검증 /
    Usando Google Chrome Google Chrome 119.0.0.0 en Windows Windows NT

    Asking questions are in fact good thing if you are not understanding anything fully, however this post provides fastidious understanding even. 먹튀검증

  15. 메이저토토사이트 /
    Usando Google Chrome Google Chrome 119.0.0.0 en Windows Windows NT

    Attractive section of content. I simply stumbled upon your web site and in accession capital to say that I acquire actually loved account your weblog posts.메이저토토사이트

  16. 토토사이트 /
    Usando Google Chrome Google Chrome 119.0.0.0 en Windows Windows NT

    It is enjoyable, however it is important that you check out this amazing web site =) 토토사이트

  17. 먹튀검증사이트 /
    Usando Google Chrome Google Chrome 119.0.0.0 en Windows Windows NT

    Helped to getting in touch with game playing in this posting fully grasp every little thing pertaining to all people =) 먹튀검증사이트

  18. 메이저사이트 /
    Usando Google Chrome Google Chrome 119.0.0.0 en Windows Windows NT

    Thank you for your content very helpful for me, another webpage I found and hope you like it 메이저사이트

  19. yitzchak kerrigan /
    Usando Google Chrome Google Chrome 119.0.0.0 en Windows Windows NT

    It’s which means that amazing together with inspiring. We really enjoy any designs together with whoever should get it all during the post shall be grinning. UFABETสมัครแทงบอลฟรีไม่มีขั้นต่ำ

  20. yitzchak kerrigan /
    Usando Google Chrome Google Chrome 120.0.0.0 en Windows Windows NT

    My spouse and i shocked while using investigation anyone created to choose this certain release outstanding. Amazing task! โปรโมชั่นสมัครแทงบอลออนไลน์UFABET

Leave a Reply