Skip to content

Instantly share code, notes, and snippets.

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

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

Select an option

Save alex-quiterio/42426c5cb2b548409ad82d958d51400d to your computer and use it in GitHub Desktop.
function install-function --description 'Install a remote function in your local fish functions folder'
set --local SCRIPTS_LOCAL_FOLDER "$HOME/.scripts"
set --local FISH_FUNCTIONS "$HOME/.config/fish/functions"
# Fail if argv is empty
if test -z "$argv"
echo "Usage: install-function <gist-id>"
return 1
end
ruby "$SCRIPTS_LOCAL_FOLDER/install-gist.rb" $argv[1] $FISH_FUNCTIONS
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment