- 1:
chmod +x activate.sh
- 2:
source activate.sh
And now, everytime that you need to activate the enviroment, just use command 2 😃
#!/bin/bash | |
licaenv=".lica" | |
licaascii="$licaenv/assets/LICA_ASCII" | |
if [ ! -d "$licaenv" ] | |
then | |
python -m venv $licaenv | |
fi | |
if [ ! -f "$licaascii" ] | |
then | |
mkdir $licaenv/assets &&\ | |
mv LICA_ASCII $licaenv/assets | |
fi | |
source $licaenv/bin/activate &&\ | |
cat $licaenv/assets/LICA_ASCII |
____________________________ | |
___ /____ _/_ ____/__ | | |
__ / __ / _ / __ /| | | |
_ /____/ / / /___ _ ___ | | |
/_____/___/ \____/ /_/ |_| | |