How to add permanently to PATH

Hey Guys,

I installed miniconda3 from AUR, now i want to add it permanently to my PATH.
I tried

export PATH="/opt/miniconda3/bin:$PATH"

because this only works for that one terminal i tried to make the change permanently with

source ~/.bash_profile

because i read somewhere that helps, but it didnt.

Adapt this snippet and add it to .profile

if [ -d "$HOME/bin" ] ; then
    PATH="$HOME/bin:$PATH"
fi

Snippet you have is good, but bash_profile might not be the best place for it. ~/.profile and ~/.bashrc might be better candidates for this.

1 Like

I thought its

/opt/miniconda3/bin

So it should rather be

PATH=$PATH:/opt/miniconda3/bin

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.

Forum kindly sponsored by