Skip to content

Instantly share code, notes, and snippets.

@callamd
Created August 27, 2024 12:07
Show Gist options
  • Save callamd/98975996fbf0aa5b7c924c98c23f3de9 to your computer and use it in GitHub Desktop.
Save callamd/98975996fbf0aa5b7c924c98c23f3de9 to your computer and use it in GitHub Desktop.
Uses fzf to activate the closest matching venv
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