Ctrl+R Searches Your Entire Shell History And Ive Been Pressing The Up Arrow For Years

historyproductivityshell2 replies 路 32 views 路 started
  1. ctrl+R in steps:

    1. Press Ctrl+R. 2 馃憤 Type part of a previous command. 3 馃う Ctrl+R again for older matches.
    2. Enter to run, or arrow key to edit first.
    3. Ctrl+G (bash) or Ctrl+C to cancel.

    tip: bash keeps a limited history by default, set HISTSIZE and HISTFILESIZE higher in .bashrc so theres more to search. powerShell on Windows has the same Ctrl+R through PSReadLine.

    1
  2. been there man ctrl+S freezing the terminal is XON/XOFF flow control :D stty -ixon in your .bashrc disables it sooo Ctrl+S does forward search instead. lmk how it goes

    somewhere an AI is confidently telling someone the wrong fix rn

    0 0 helpful
  3. oh also mods can we pin this therad. is shell even worth bothering with or should i just leave it

    0 1 helpful

Reply to this topic

Sign in or create an account to reply.