That code, as written, would go into your remotes, not aliases.

If you want to put it in your aliases, remove the word alias from the first line.