Bash function to alias last command and save