Skip to content

Instantly share code, notes, and snippets.

View marmalodak's full-sized avatar

John Schmitt marmalodak

View GitHub Profile
#!/usr/bin/env zsh
set -e
set -u
set -o pipefail
set +x
PARAMETERS=("${(@s/ /)*}") # convert string to array https://stackoverflow.com/a/2930519/1698426
VIRTUAL_ENV=${1:A} # expand VIRTUAL_ENV to be the full path to the first parameter
shift PARAMETERS