mirror of
https://github.com/jbranchaud/til
synced 2026-01-07 00:58:02 +00:00
Add Search History as a zsh til.
This commit is contained in:
@@ -35,6 +35,10 @@ smart people at [Hashrocket](http://hashrocket.com/).
|
|||||||
- [Rename Current File](vim/rename-current-file.md)
|
- [Rename Current File](vim/rename-current-file.md)
|
||||||
- [Split Different](vim/split-different.md)
|
- [Split Different](vim/split-different.md)
|
||||||
|
|
||||||
|
### zsh
|
||||||
|
|
||||||
|
- [Search History](zsh/search-history.md)
|
||||||
|
|
||||||
## About
|
## About
|
||||||
|
|
||||||
I shamelessly stole this idea from
|
I shamelessly stole this idea from
|
||||||
|
|||||||
12
zsh/search-history.md
Normal file
12
zsh/search-history.md
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
# Search History
|
||||||
|
|
||||||
|
Often times there is a very specific command you have entered into your bash
|
||||||
|
prompt that you need to run again. You don't want to have to type it again
|
||||||
|
and stepping manually through your history may be suboptimal if you typed it
|
||||||
|
quite a while ago. Fortunately, there is a simple history search feature
|
||||||
|
that you can use in this kind of situation.
|
||||||
|
|
||||||
|
Hit `Ctrl+r` and then start typing a moderately specific search term. Your
|
||||||
|
search history will be filtered by that term. Subsequent hitting of
|
||||||
|
`Ctrl+r` will step forward through that filtered history. Once you find the
|
||||||
|
command you are looking for, hit enter to execute it.
|
||||||
Reference in New Issue
Block a user