Terminal says "not a valid identifier" after trying to update my bash profile to install hugo

Hi everyone,
While trying to reinstall hugo from tarball, I got to the to the part in the instructions that says,

If hugo is not in your PATH, add it by updating your ~/.bash_profile file.

It wasn’t, so I typed nano ~/.bash_profile, added the line, but must have done something wrong. Now, when I open .bash_profile on Nano or TextEdit, I see it there:

export PATH$PATH:$HOME/bin

but,

  1. It didn’t work (hugo is still not installed);
  2. When I open the Terminal, I get a message that says

-bash: export: `PATH/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/claudia/bin’: not a valid identifier

Does anybody know how I can undo what I did and start over?

You are missing an equal sign in there.

export PATH="$PATH:$HOME/bin"

A typo…! Of course. Yep, everything’s sorted :relieved: Thanks, @kaushalmodi :blush:

Glad I could help :slight_smile:

1 Like