Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I switched solely for the reason Zsh has command substring search. It's a huge timesaver for some who spends more than 50% of time on the terminal.


Ctrl-R in bash?


No, substring searches.

Ctrl+R in bash (by default, at least) will not search from the middle of a command. For instance, if the previous command was "hello", searching for "ello" will not bring it up. Whereas with zsh, it will.


The default bash on OS X (3.2.48(1)-release) just did when I tried it.


Ctrl+R definitely works that way with bash, but I think he may be referencing tab completion:

    > ell<TAB>
    Completing external command
    git-shell  xdmshell   xkbbell  
    Completing shell function
    _ispell


I wish there were ido-style searching, where typing "slstr" would match "some long string". (Provided, of course, there were no other strings that were a closer match.)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: