Initial commit
This commit is contained in:
7
scripts/history-clean
Executable file
7
scripts/history-clean
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
# Cleans the history file of PGP messages and keys
|
||||
|
||||
histfile="${1:-$HISTFILE:-$HOME/.histfile}"
|
||||
cp -a "$histfile" "/tmp/$histfile.bak"
|
||||
sed --in-place '/gpg/d' "$histfile"
|
||||
sed --in-place '/-----BEGIN PGP MESSAGE-----/,/-----END PGP MESSAGE-----/d' "$histfile"
|
||||
Reference in New Issue
Block a user