MacOS – terminal mac – bash command not found, permission denied and ‘&gt’ in prompt

bashmacospermissionterminal

I tried to change colours in Terminal following this guide:

  http://voidcanvas.com/ubuntu-like-mac-terminal/

I created bash_profile file, saved and quitted Terminal. Now when i open Terminal I get this

Last login: Mon Oct 17 01:36:24 on ttys000
-bash:  : command not found
-bash:  : command not found
-bash:    git: command not found
-bash: gt: command not found
-bash: /dev/null: Permission denied
->> $ 

the last line is changed in StackExchange's text editor, I do not understand why please look at the uploaded photo below – this is how it looks in my terminal

I deleted bash_profile and I still get the same.

Stupid screen shot

Every command I write is followed by:

-bash:    git: command not found
-bash: gt: command not found
-bash: /dev/null: Permission denied

What should I do it to stop it?

Update from comments: Here's what I put in the file.

export CLICOLOR=1
export LSCOLORS=GxBxCxDxexegedabagaced
parse_git_branch() {
    git branch 2> /dev/null |
    sed -e '/^[^*]/d' -e 's/* (.*)/ (\1)/'
}
export PS1="\e[0;35m->> \e[1;34m\W\e[0;32m\$(parse_git_branch)\e[0;37m $ "

Best Answer

The &gt; is a syntax error, apparently caused by HTML markup in whatever source you copy/pasted this from. Where you see &gt; the author intended > and where you see &lt; the author intended <. If there's an &amp; that will need to be replaced with a literal & etc.

See a listing of HTML entity codes for a somewhat more exhaustive list.