Skip to content

Instantly share code, notes, and snippets.

@deepbrook
Last active March 21, 2020 19:11
Show Gist options
  • Save deepbrook/235b941a934ac4f656ed9b0c19448117 to your computer and use it in GitHub Desktop.
Save deepbrook/235b941a934ac4f656ed9b0c19448117 to your computer and use it in GitHub Desktop.
cd && activate virtualenv with venvwrapper
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