Deactivate before creating a venv, to avoid venv using pythons of other venvs.
This commit is contained in:
parent
6d637a1970
commit
daf63b46db
2
.bashrc
2
.bashrc
|
@ -113,7 +113,7 @@ clean()
|
||||||
-print0 | xargs -0 rm -f
|
-print0 | xargs -0 rm -f
|
||||||
}
|
}
|
||||||
|
|
||||||
alias venv='[ -d venv ] || python3 -m venv --prompt "$(basename "$PWD")" venv; source venv/bin/activate'
|
alias venv='deactivate 2>/dev/null; [ -d venv ] || python3 -m venv --prompt "$(basename "$PWD")" venv; source venv/bin/activate'
|
||||||
|
|
||||||
dotfiles()
|
dotfiles()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user