Seenthis
•
 
Identifiants personnels
  • [mot de passe oublié ?]

 

b_b

@b_b
http://blog.eliaz.fr
RSS: b_b
tous les messages de b_b
  • @b_b
    b_b @b_b PUBLIC DOMAIN 29/01/2018
    2
    @nicod_
    @rastapopoulos
    2

    Moving efficiently in the #CLI
    ▻https://clementc.github.io/blog/2018/01/25/moving_cli

    I’m tired of pounding on the arrow keys when moving in the command line, but I keep on forgetting the keyboard #shorcuts that would help me move more efficiently, so here’s a simple diagram in a flashcard format for future reference!

    https://clementc.github.io/figures/moving_cli.png

    Perso j’abuse déjà de ctrl+a et ctrl + ← ou → mais je viens d’en découvrir de nouveaux bien sympas :)

    b_b @b_b PUBLIC DOMAIN
    • @nicod_
      nicod_ @nicod_ 29/01/2018

      Ah cool, je galère toujours avec ça aussi.

      Sinon je mets toujours ça dans mon profil pour remonter plus facilement dans l’historique :

      export HISTCONTROL=erasedups
      export HISTSIZE=10000
      shopt -s histappend
      bind '"\e[A": history-search-backward'
      bind '"\e[B": history-search-forward'
      set show-all-if-ambiguous on
      set completion-ignore-case on

      Tu tapes le début de la commande, et avec ↑ et ↓ tu te ballades dans les commandes qui commencent pareil (.bash_history).

      nicod_ @nicod_
    • @b_b
      b_b @b_b PUBLIC DOMAIN 29/01/2018
      @nicod_

      @nicod_ pas mal les binds, mais ça ne fait pas doublon avec ce que propose déjà ctrl + r ?

      b_b @b_b PUBLIC DOMAIN
    • @nicod_
      nicod_ @nicod_ 29/01/2018

      Visiblement non (je viens de tester).
      Du coup, j’utilise pas CTRL+R en fait, je tape juste le début, genre svn et je remonte avec ↑

      nicod_ @nicod_
    • @grommeleur
      grommeleur @grommeleur 29/01/2018

      Cest que dans #bash ? Ou pas ?

      grommeleur @grommeleur
    • @nicod_
      nicod_ @nicod_ 29/01/2018

      Aucune idée, j’utilise que bash (Linux et MacOs).

      nicod_ @nicod_
    Écrire un commentaire

thèmes

  • #CLI
  • #shorcuts
Propriété intellectuelle Recommandations API