Three "alias-functions" in my .bashrc file
You never validate the contents/existence of $1

for instance: grep -v "" "$HISTFILE" returns nothing, so you're deleting your entire history.

You might want to use set -x, set +x instead of echo-ing the commands about to be done.