3 ms·
> In Bash, we often use PgUp to search through the command history. In Zsh you just write part of the command and press Up. This will let you cycle through all
by ludwigvan 14y ago
> In Bash, we often use PgUp to search through the command history. In Zsh you just write part of the command and press Up. This will let you cycle through all command lines that contain what you have written, not just those that begins with it. If you don’t write anything Up works as usual, by cycling through all commands.
This is not true, you can do that in Bash too (via .inputrc)
http://blog.theliuy.com/2011/inputrc-keyboard-mapping-config-file/ http://blog.theliuy.com/2011/inputrc-keyboard-mapping-config...
Edit: Maybe I misunderstood though, does pressing Up really let you search all command lines that contain what you have written, not just those that begins with it? It doesn't seem to do that on my zsh.
- daivd 14y agoYeah, I thought as much. I just mentioned it to help a new user, because the standard in Bash seems to be PgUp and beginning-of-line search, while in Zsh it is Up and full search.
- bryanlarsen 14y agoIn bash, I press ctrl-r and then enter part of the command. additional ctrl-r's cycle.
- bostonvaulter2 14y agoZsh does that as well with the same exact shortcut
- jlgreco 14y agoIt depends on which completion type you want to use. Zsh can do either.