mirror of
https://github.com/RealOrangeOne/notes.git
synced 2024-12-22 13:16:22 +00:00
Stop saving bash history
This commit is contained in:
parent
498b21d2d1
commit
74f30480d5
1 changed files with 25 additions and 0 deletions
25
notes/shell/stop-saving-history.md
Normal file
25
notes/shell/stop-saving-history.md
Normal file
|
@ -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
|
||||||
|
```
|
Loading…
Reference in a new issue