I had to close the terminal and reopen it. Some failed attempt of function must have been recorded in that environment.
If any one is interested, here is the working function:
And here are some aliases:
for i in $@
sudo add-apt-repository -y $1
sudo apt-get update
You can copy-paste the function at the end of .bashrc (It's in your home folder, as a hidden file. Run gedit .bashrc from a new terminal, or better yet hit Ctrl + F2 and type it in).
alias addppa="sudo add-apt-repository"
alias aptinstall="sudo apt-get install"
alias aptupgrade="sudo apt-get upgrade"
alias aptautoremove="sudo apt-get autoremove"
alias aptupdate="sudo apt-get update"
As for the aliases, Ctrl + F2...
Copy-paste them as above, and save. That will let you type in those short words instead of the tedious ones that are between ""s
Self-responded at the end
Hope somebody finds this at least a bit useful