$ alias my_alias='my_command' $ echo "!!" >> ~/.bash_aliases
!! refer to the last command typed in bash history