A small Fish script can take an OpenGist URL, download the current HEAD ZIP, and extract all files without creating a Git repository.
0
0
1
| 1 | #!/usr/bin/env fish |
| 2 | |
| 3 | function usage |
| 4 | echo "Usage: gist-pull <gist-url> [destination]" |
| 5 | echo |
| 6 | echo "Example:" |
| 7 | echo " gist-pull https://gist.example.com/william/my-gist ./config" |
| 8 | end |
| 9 | |
| 10 | if test (count $argv) -lt 1 |