Last active
September 4, 2026 08:52
-
-
Save alex-quiterio/f9443b5fdde91dba57b98d734e5f7043 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function install-script --description 'Install a remote script in your local .scripts folder' | |
| set --local SCRIPTS_LOCAL_FOLDER "$HOME/.scripts" | |
| # Fail if argv is empty | |
| if test -z "$argv" | |
| echo "Usage: install-script <gist-id>" | |
| return 1 | |
| end | |
| ruby "$SCRIPTS_LOCAL_FOLDER/install-gist.rb" $argv[1] $SCRIPTS_LOCAL_FOLDER | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment