Last active
September 4, 2026 08:36
-
-
Save alex-quiterio/42426c5cb2b548409ad82d958d51400d 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-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