Skip to content

Instantly share code, notes, and snippets.

@alex-quiterio
Last active September 4, 2026 08:52
Show Gist options
  • Select an option

  • Save alex-quiterio/f9443b5fdde91dba57b98d734e5f7043 to your computer and use it in GitHub Desktop.

Select an option

Save alex-quiterio/f9443b5fdde91dba57b98d734e5f7043 to your computer and use it in GitHub Desktop.
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