ref(gitignore), change(va func): find by whole name

This commit is contained in:
TheK4n 2022-03-06 03:54:11 +03:00
parent 43c73a6284
commit 80de2491b5
2 changed files with 11 additions and 3 deletions

View File

@ -43,7 +43,7 @@ va() {
return 0
fi
activate_venv="$(find -P . -maxdepth 3 -type f -name activate | sort | head -n 1)"
activate_venv="$(find -P . -maxdepth 3 -type f -wholename '*/bin/activate' | sort | head -n 1)"
if [ -n "$activate_venv" ]; then
source "$activate_venv"

View File

@ -1,6 +1,14 @@
# Pycharm
.idea
# vim
*.sw[op]
Session.vim
# python virtual env
venv
.venv
.env
*.log
Session.vim
venv