hey all,
I have created a bash script that is below (i have already created environment named "blast" and installed blast in it)
#!/bin/bash
set -e #exit if command fails
conda activate blast
echo "blast help"
blast -help
conda deactivate
when I make my "script.bash" file executable and run it with commands:
chmod +x script.bash
./script.bash
I get the following error/warning at my screen
CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'.
To initialize your shell, run
    $ conda init <SHELL_NAME>
Currently supported shells are:
  - bash
  - fish
  - tcsh
  - xonsh
  - zsh
  - powershell
See 'conda init --help' for more information and options.
IMPORTANT: You may need to close and restart your shell after running 'conda init'.
I have tried conda init bash along with restarting my shell source ~/.bashrc and evening close and open terminal again and even reboot terminal. but this error is persistent.
I have been facing this error on 3 different machine
- my personal laptop with Ubuntu 22.04 LTS running in WSL-2
 - My lab PC with Ubuntu 22.04 LTS running in WSL-1
 - A virtual machine with ubuntu server from university cluster
 
I have been using miniconda3 on all three systems and getting the same error with both conda and mamba.
Thank You DBScan Ram Jesse for helpful answers.