#!/bin/sh

RM="rm -f"

usage() {
    cat <<EOF
rmhist
removes history files

EOF
}

rm_history_files() {
	xargs $RM <<EOF
$HOME/.bash_history
$HOME/.calc_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/.yosys_history
$HOME/.ghc/ghci_history
$HOME/.cache/.bluetoothctl_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
