Created
August 27, 2024 12:07
-
-
Save callamd/98975996fbf0aa5b7c924c98c23f3de9 to your computer and use it in GitHub Desktop.
Uses fzf to activate the closest matching venv
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
v() { | |
source ~/Documents/venv/"$(find ~/Documents/venv/ -maxdepth 1 -type d -exec basename {} \; | fzf --filter="$1" | head -n 1)"/bin/activate | |
} | |
alias d='deactivate' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment