Skip to content

Instantly share code, notes, and snippets.

Forked from mob-sakai/
Created February 26, 2022 10:57
What would you like to do?
Run shell script on gist

Run shell script on gist

Shells that support process substitution such as bash and zsh allow to run shell script on gist as follows.

# With curl:
bash <(curl -sL ${GIST_URL}) args...

# With wget:
bash <(wget -nv -O - ${GIST_URL}) args...

# If wget-log is generated:
bash <(wget -o /dev/null -nv -O - ${GIST_URL}) args...

For example:

bash <(curl -sL I am mob-sakai!
#!/usr/bin/env bash
echo "Hello! $@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment