Why so complicated?
Just use an ALIAS for this. And for everything else that get's on your nerves, too.
It's easy to do, auto-loaded with the bash and you can even choose your own name for it. It so much fun and so easy to make.
You just need a file, and your command
Go into your home folder and create the file put an ALIAS into it. As an example
echo "ALIAS hp='wget http://thisisareallongnameforanurl.com'" > /home/${USER}/.bash_aliases
then to directly use it, do
source .bash_aliases
I called the ALIAS hp. So you just type hp into a terminal and your command will be executed.
This works with any command or script.
To autoload the aliases when you open a terminal, make sure that the following section in your .bashrc file is not commented out.
# Alias definitions.
# You may want to put all your additions into a separate file like
# ~/.bash_aliases, instead of adding them here directly.
# See /usr/share/doc/bash-doc/examples in the bash-doc package.
if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi
but AFAIR correctly it's on by default.
To add more just
echo "ALIAS hp2='wget http://thisurlisevenmuchlongerthenthefirsone.com'" >> /home/${USER}/.bash_aliases