News for hackers. Stuff that matters.
Re:Zsh is your friend. by Lewisham on Tuesday January 31, 2012 @12:04PM (#3534096)
The thing I like about fish is the easy history nav. I type "git" and press Up, and I get to go through my history of anything that started with "git" very quickly. I'll often remember I typed an svn command three weeks ago, but forget the parameters, and I'll have it back within 15 seconds.

It's like magic!

Re:Zsh is your friend. by CJefferson on Tuesday January 31, 2012 @12:07PM (#3534112)
This is indeed a lovely feature I couldn't live without.

In bash, you can get it by adding the following to your .inputrc (at least on mac terminal)

    "\e[B":    history-search-forward  
    "\e[A":    history-search-backward
Re:Zsh is your friend. by gkop on Tuesday January 31, 2012 @02:52PM (#3534878)
I add these lines so the left- and right-arrows still work correctly:

    "\e[C": forward-char
    "\e[D": backward-char
Re:Zsh is your friend. by sandGorgon on Tuesday January 31, 2012 @01:28PM (#3534490)
in zsh you get it by adding

bindkey "^[[A" history-beginning-search-backward

bindkey "^[[B" history-beginning-search-forward

Re:Zsh is your friend. by ohgodthecat on Tuesday January 31, 2012 @12:28PM (#3534207)
I believe in bash and zsh the default is ^R and ^S
Re:Zsh is your friend. by shabble on Tuesday January 31, 2012 @01:22PM (#3534457)
except a huge number of terminal emulators still reserve ^S/^Q for XON/XOFF software flow-control[1].

    stty -ixon
lives in my init scripts for that reason.

[1] https://en.wikipedia.org/wiki/Software_flow_control

Re:Zsh is your friend. by lysium on Tuesday January 31, 2012 @01:13PM (#3534415)
Works the same in zsh.