Skip to content
/ ghs Public

npx-like script runner for GitHub gists ๐Ÿ“œ

License

Notifications You must be signed in to change notification settings

flexwie/ghs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

13 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

ghs ๐Ÿ“œ

A npx-like script runner for GitHub gists

Fetch scripts from GitHub Gists and execute them as if they were native scripts.

Installation

Homebrew

brew tap flexwie/homebrew-flexwie
brew install flexwie/flexwie/ghs

apt

echo "deb [trusted=yes] https://apt.fury.io/flexwie/ /" >> /etc/apt/sources.list.d/fury.list
apt update
apt install ghs

nix
You can get a nix flake from https://github.com/flexwie/nur-packages

Usage

ghs <user>/<gist>

for example: ghs flexwie/test.sh

Executors

Executors handle different gist types and languages and are mostly used for languages, that can't be invoked with a shebang (Go for example). Currently, there are two executors: one for shebang-style scripts and one for Go scripts.