ref(gitignore), change(va func): find by whole name
This commit is contained in:
parent
43c73a6284
commit
80de2491b5
@ -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"
|
||||
|
||||
@ -1,6 +1,14 @@
|
||||
|
||||
# Pycharm
|
||||
.idea
|
||||
|
||||
# vim
|
||||
*.sw[op]
|
||||
Session.vim
|
||||
|
||||
# python virtual env
|
||||
venv
|
||||
.venv
|
||||
|
||||
.env
|
||||
*.log
|
||||
Session.vim
|
||||
venv
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user