Last active
March 21, 2020 19:11
-
-
Save deepbrook/235b941a934ac4f656ed9b0c19448117 to your computer and use it in GitHub Desktop.
cd && activate virtualenv with venvwrapper
This file contains 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
set DEV_DIR {$HOME}/devel | |
function switch-to | |
if test -e {$DEV_DIR}/{$argv[1]} | |
cd {$DEV_DIR}/{$argv[0]} | |
workon (basename {$argv[1]}) | |
else | |
echo "No such workspace!" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment