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:
# https://bugs.launchpad.net/ubuntu/+source/wget/+bug/1765690
bash <(wget -o /dev/null -nv -O - ${GIST_URL}) args...
For example:
bash <(curl -sL https://gist.githubusercontent.com/x0000ff/df054cc138fa22ed91915c0184b56f74/raw/d615e0df62c5e5be5d7557b47da6f42e50a49555/clear-branches.sh)