Timeline for Command history in Zsh
Current License: CC BY-SA 3.0
10 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Oct 28, 2021 at 19:04 | comment | added | user176181 | could you add to this illustrious answer, also a link about USING the history? how to retrieve a command 100 lines ago, or the last 5, or the first one today? how to "repeat last command" ? | |
| Aug 4, 2020 at 9:03 | comment | added | Seamus | And the cached/session history is manipulated via the fc commands as shown (for example) in this answer? | |
| Aug 4, 2020 at 8:01 | comment | added | Gilles 'SO- stop being evil' | @Seamus Yes. Each instance of the shell keeps its own history in memory, and in addition there's a history file. Several settings control when history entries get written to the file: SAVEHIST, append_history, share_history, … | |
| Aug 4, 2020 at 7:07 | comment | added | Seamus | You may have answered my question: Until I recently began digging into the history feature in zsh, I've assumed that ALL history was history that was stored in the history file. It's only occurred to me recently that there is also session history - which is stored in memory (??), and may or may not be in the history file depending on how certain options are set. Is that an accurate synopsis of it... two "memories" - one cached and one in a file? | |
| Jul 20, 2020 at 17:47 | comment | added | alper | I have following configuration (gist.github.com/avatar-lavventura/…) in my .zprofile (inc_append_history is included). When I open two window on a terminal. And do echo world_1 on first one, and echo world_2 on the seconds one, they don't see each others commands on the history. But third new terminal sees them | |
| Jul 20, 2020 at 17:16 | comment | added | Gilles 'SO- stop being evil' | @alper Yes, if you set inc_append_history. | |
| Jul 20, 2020 at 15:45 | comment | added | alper | When I open different terminal connect into same remote machine, they don't see each others newly entered command history. Is it possible to let them see each others recently entered commands? | |
| Sep 21, 2017 at 20:23 | history | edited | llua | CC BY-SA 3.0 | At no point did zsh-newuser-install set HISTFILE to ~/.zsh_history, that value was always set by vendors mimicing bash's default filename. |
| Apr 27, 2014 at 17:35 | vote | accept | Amelio Vazquez-Reina | ||
| Jan 31, 2014 at 1:36 | history | answered | Gilles 'SO- stop being evil' | CC BY-SA 3.0 |