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
#!/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 |