scripts/rmhist
joachimschmidt557 1ccbcb338c
update rmhist
2021-08-29 12:34:22 +02:00

37 lines
469 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/.local/share/insect-history
$HOME/.local/share/nix/repl-history
$HOME/.local/share/recently-used.xbel
EOF
}
case "$1" in
--help)
usage
exit 1
;;
*)
rm_history_files
;;
esac