Trouble installing CLI on Manjaro Linux

Hello I am having issues downloading the CLI for exercism. When I get to the step that uses this command

echo 'export PATH=~/bin:$PATH' >> ~/.bash_profile
source ~/.bash_profile

The response I get is

/home/void/.bashrc:type:65: bad option: -P
/home/void/.bashrc:106: command not found: shopt
/home/void/.bashrc:108: command not found: shopt
/home/void/.bashrc:113: command not found: shopt

And I cannot access exercism through my IDE or even through the terminal sometimes. (If I do ~/bin/exercism I get the proper output but just exercism gives me an error).

That error has nothing to do with the change made in ~/.bash_profile

It’s in a different file: ~/.bashrc

Are you sure your shell is bash? Are you using zsh perhaps?