# for miniconda
export PATH="/home/$USER/miniconda/bin:$PATH"
# for anaconda3
export PATH="/home/$USER/anaconda3/bin:$PATH"
export PATH=~/anaconda3/bin:$PATH
source ~/anaconda3/etc/profile.d/conda.sh
conda activate Your_env
export PATH=~/anaconda3/bin
-- This works for me
source /Users/my_username/opt/anaconda3/bin/activate
export PATH="/home/username/miniconda/bin:$PATH"