Skip to content

Instantly share code, notes, and snippets.

@zendeavor
Last active December 20, 2015 12:29
Show Gist options
  • Save zendeavor/6130995 to your computer and use it in GitHub Desktop.
Save zendeavor/6130995 to your computer and use it in GitHub Desktop.
RUBIES=()
${ZSH_VERSION+setopt nullglob}
for dir in "$PREFIX"/rubies/* "$HOME"/.rubies/*; do
|-------[[ -d "$dir"/bin ]] && RUBIES+=("$dir")
done
${ZSH_VERSION+setopt nonullglob}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment