I wrote in ~/.bashrc
:
function activate {
if [[ -d venv/ ]]
then
source venv/bin/activate
echo "VENV ACTIVATED"
else
python3 -m venv venv
source venv/bin/activate
echo "NEW VENV ACTIVATED"
fi
}
But it’s not found in VSCode terminal. So…
I’ve tried to put source ~/.bashrc
in .bash_profile
.
I’ve tried to put in setting.json
:
"terminal.integrated.profiles.osx": {
"bash": {
"path": "/bin/bash",
"icon": "terminal-bash",
"args": [
"-l"
]
}
}
But neither has worked so far.
What’s the problem here? How to fix it?