Timeline for How to clear history in zsh
Current License: CC BY-SA 4.0
16 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Apr 22, 2022 at 11:20 | history | protected | dr_ | ||
| Jan 5, 2022 at 2:16 | comment | added | Ding-Yi Chen | It seems like you could use the title like: "How to reset the zsh histroy to a predefined set when I login", otherwise you will keep seeing "history -p" around | |
| Sep 19, 2021 at 16:29 | answer | added | serax | timeline score: 8 | |
| Jan 7, 2021 at 18:48 | answer | added | Gimi | timeline score: 10 | |
| Sep 2, 2020 at 16:03 | answer | added | Potato Boii | timeline score: 61 | |
| Dec 16, 2019 at 15:39 | comment | added | uniqueid |
are you looking for history -p?
|
|
| Oct 7, 2019 at 18:00 | history | tweeted | twitter.com/StackUnix/status/1181268114484453376 | ||
| Oct 3, 2019 at 18:12 | vote | accept | Kresimir | ||
| Oct 2, 2019 at 17:58 | answer | added | Gilles 'SO- stop being evil' | timeline score: 31 | |
| Sep 30, 2019 at 7:53 | history | edited | Kresimir | CC BY-SA 4.0 |
added 4 characters in body
|
| Sep 30, 2019 at 7:45 | history | edited | Kresimir | CC BY-SA 4.0 |
Added a workaround.
|
| Sep 29, 2019 at 22:47 | comment | added | Kresimir |
I am using setopt APPEND_HISTORY. I'm quite happy with how that works, it appends the current session's history to the $HISTFILE whenever the terminal is closed. But sometimes I want to clear the history during the session (when I write something stupid), but preserve what is in $HISTFILE
|
|
| Sep 29, 2019 at 22:45 | comment | added | Kusalananda♦ |
What history-related shell options are you using? Are you, for example, sharing history between shell sessions with setopt SHARE_HISTORY or are you using setopt INC_APPEND_HISTORY (both of these writes commands to the history as they are entered)?
|
|
| Sep 29, 2019 at 22:45 | history | edited | Jeff Schaller♦ |
edited tags
|
|
| Sep 29, 2019 at 22:40 | review | First posts | |||
| Sep 30, 2019 at 0:07 | |||||
| Sep 29, 2019 at 22:37 | history | asked | Kresimir | CC BY-SA 4.0 |