Opengist

Explore

  • All gists
  • Topics
  • Users
Give feedback on the new UI Powered by Opengist ⋅ 17ms

user:thomas gists created by user

title:mygist gists with given title

description:sync gists with given description

filename:myfile.txt gists having files with given name

extension:yml gists having files with given extension

language:go gists having files with given language

topic:homelab gists with given topic

all:systemctl search all fields

Login
s

scripts

Recently created Least recently created Recently updated Least recently updated
William-Owen

William-Owen / gist-pull

Last active 1 month ago scripts tools

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