SHA256
1
0

Make roles more reusable

This commit is contained in:
2026-01-29 02:49:52 -05:00
parent 4436599693
commit 44261c95fb
60 changed files with 1273 additions and 353 deletions

7
roles/scripts/history-clean Executable file
View 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"