Timeline for How does history work in fish shell?
Current License: CC BY-SA 4.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Apr 12 at 14:16 | comment | added | Bogdan Iulian Bursuc |
While the up arrow is very useful (thx @faho) I've discovered the Ctrl+r which opens the search.
|
|
Aug 1, 2022 at 12:15 | history | edited | Kusalananda♦ | CC BY-SA 4.0 |
Add link to documentation
|
Apr 19, 2017 at 0:41 | vote | accept | Philip Kirkbride | ||
Apr 19, 2017 at 0:30 | comment | added | Zanchey |
You can search the history with the usual pager command (usually '/'), or pipe it through grep or other commands. Like git, or systemctl, the pager is only used if the output is directly to a TTY.
|
|
Apr 18, 2017 at 23:41 | comment | added | Philip Kirkbride | Thanks faho and yes @gilles another big downside is that you can't really use a double grep. | |
Apr 18, 2017 at 23:25 | comment | added | Gilles 'SO- stop being evil' | But what if you don't remember the command, but read your history and find it out? E.g. “whichever command I ran immediately after that one” or “that command contained the name of a Chinese emperor but I don't remember which one”. | |
Apr 18, 2017 at 22:36 | history | answered | faho | CC BY-SA 3.0 |