bash: alias: alias: not found

Solution 1:

I had the same issue, so the solution is to follow simply rules.

alias alias_name='command '

no other symbols between equal sign.
I had whitespaces between the sign and the source ~/.bashrc always failed for me.
so be attentive

Solution 2:

It turns out that a line feed had been removed from ~/.bashrc, giving:

alias ll='ls -alF' alias la='ls -A'
alias l='ls -CF'

Breaking the first line into two commands fixes the error.