You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# https://gist.github.com/kishannareshpal/342efc4a15e47ea5d338784d3e9a8d98
function activatevenv() {
VIRTUALENV_DIRS=("venv/" "env/" ".env/" ".venv/" "${PWD##*/}")
for dir in "${VIRTUALENV_DIRS[@]}"; do
if [[ -d "${dir}" ]]; then
if [[ -e "./${dir}/bin/activate" ]]; then
source ./$dir/bin/activate
break
fi
fi
done
}
activatevenv
function cd() {
builtin cd $1
activatevenv
}
That I use with cd manually but I would like to do the same for zoxide.
Right now I use z folder and the cd command is not executed.
The text was updated successfully, but these errors were encountered:
As example I have this bash function:
That I use with
cd
manually but I would like to do the same forzoxide
.Right now I use
z folder
and the cd command is not executed.The text was updated successfully, but these errors were encountered: