Possible to create a Bash alias that enters a certain string into Terminal?
Here's how I would approach it. Use this related question to write the function that would reside in your bashrc or bash_profile. Then add a line in the function that would delete the most recent line in your bash history using this