scripts/rmhist
joachimschmidt557 a49711b6b8
update rmhist
2021-09-22 21:45:57 +02:00

41 lines
593 B
Bash
Executable file

#!/bin/sh
RM="rm -f"
usage() {
cat <<EOF
rmhist
removes history files
EOF
}
rm_history_files() {
xargs $RM <<EOF
$HOME/.bash_history
$HOME/.lesshst
$HOME/.octave_hist
$HOME/.psql_history
$HOME/.python_history
$HOME/.tig_history
$HOME/.wget-hsts
$HOME/.wpa_cli_history
$HOME/.rediscli_history
$HOME/.ghc/ghci_history
$HOME/.local/share/insect-history
$HOME/.local/share/nix/repl-history
$HOME/.local/share/recently-used.xbel
$HOME/.local/share/zathura/history
$HOME/.local/share/zathura/input_history
EOF
}
case "$1" in
--help)
usage
exit 1
;;
*)
rm_history_files
;;
esac