scripts/rmhist
joachimschmidt557 32301eed46 Add rmhist
2020-08-28 10:45:31 +02:00

33 lines
338 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
EOF
}
case "$1" in
--help)
usage
exit 1
;;
*)
rm_history_files
;;
esac