Zsh

= history-beginning-search-backward = Converting from tcsh the hardest part was that history-beginning-search-backward didn't put the cursor at the end of the line when it completed. Years worth of muscle memory made it a minor hell for me to adapt.

With the help of the #zsh channel on irc.freenode.org, and ft in particular, I got pointed to the zshcontribs package and the function history-search-end.

To put back that tcsh-behaviour tuck in the following in your .zshrc:

autoload history-search-end zle -N history-beginning-search-backward-end history-search-end zle -N history-beginning-search-forward-end history-search-end bindkey "\e[A" history-beginning-search-backward-end #cursor up bindkey "\e[B" history-beginning-search-forward-end #cursor down