mirror of
https://github.com/jorgebucaran/fisher
synced 2024-09-10 15:07:40 +02:00
+ Add the ability to install plugins from Gists. You can distribute a very simple, one-single function plugin in the form of a Gist. Your users can install it using fisher install url and Fisherman will query the Gist using the GitHub API to get a list of the Gist files and use the name of the first identified *.fish file to name the plugin in your system. Since there is no formal way to name a Gist, and you may prefer to keep the "description" field for the actual description and not a name, Fisherman supports only one fish file per Gist. Closes #75. + Use command(1) when calling non-builtins. Thanks @daenney. Closes #79. + Add __fisher_plugin_can_enable to detect installing a prompt that is not the current one. Closes #78. + Remove the ability to install a plugin in a parent directory using .. or ../ or even worse, ../../ as well as other combinations that navigate to a parent directory. I find the use case odd at best, and more dangerous that useful. If you want to install a local plugin use the full path or a relative path, always top down. fisher install . or fisher install my/plugin or fisher install /Users/$USER/path/to/plugin. Closes #81.
47 lines
1.4 KiB
Text
47 lines
1.4 KiB
Text
# This is a Fishfile, created by ocean inside a sea tornado of sharks!
|
|
#
|
|
# The fishfile is your ship's log and tells your adventures across the
|
|
# 7 seas and beyond. The old Fisherman will keep track of your plugins
|
|
# in this file. Plugins can be names, urls or paths.
|
|
#
|
|
# Comments and empty lines are never removed. You are the captain!
|
|
#
|
|
# You can store this file in any place you like and Fisherman will
|
|
# make a note to remember that.
|
|
#
|
|
# set -g fisher_file ~/.config/fish/fishfile
|
|
#
|
|
# If you would like to restore a previous Fisherman installation, you
|
|
# can do so too:
|
|
#
|
|
# fisher install < you/old/fishfile
|
|
#
|
|
# If you have upgraded from an Oh My Fish! setup, you can feed bundle
|
|
# file instead of a fishfile too. Fisherman will take care of it.
|
|
|
|
foo
|
|
bar
|
|
baz
|
|
|
|
# Oh My Bundle? Add 'plugin-' or 'theme-' prefixes.
|
|
|
|
package norf
|
|
theme zerg
|
|
|
|
# Plugins installed from unknown URLs look like this.
|
|
|
|
https://github.com/quux/quux
|
|
https://github.com/quux/pkg-hoge
|
|
https://github.com/quux/omf-theme-foobar
|
|
https://github.com/quux/fish-fred
|
|
https://github.com/quux/fisher-thud
|
|
|
|
# You can install a plugin from a local directory too.
|
|
|
|
/Users/fisherboy/Projects/fisherman/plugins/chomp
|
|
|
|
# You can also install a plugin from a gist. There is no formal way to name a gist,
|
|
# so a gist plugin is recommended to export a single fish function. The repository
|
|
# may include other files too, but there should be only *one* fish file.
|
|
|
|
gisty@https://gist.github.com/xxxx
|