//init.sh
#!/usr/bin/env bash
export PATH="${HOME}/.pyenv/scripts:$PATH"
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"
pyenv shell ammt-crawler
I want to run init.sh file in linux command line
And make sure pyenv shell ammt-crawler line is executed.
but When I just put ./init.sh nothing happend.
is there why to execute the init.sh file in linux?
(ps) if you can please explain to me what export , eval mean inside of this init.sh
Try to add execute permissions to the script :
and try running it again.