diff --git a/notes/shell/stop-saving-history.md b/notes/shell/stop-saving-history.md new file mode 100644 index 0000000..8568daa --- /dev/null +++ b/notes/shell/stop-saving-history.md @@ -0,0 +1,25 @@ +--- +title: Stop saving bash history +emoji: 🤔 +tags: + - Shell +modified: 2022-11-02 +--- + +## Disable history for a given session + +```shell +$ unset HISTFILE +``` + +or: + +```shell +$ set +o history +``` + +## Clear history + +```shell +$ history -c +```