mirror of
https://github.com/jorgebucaran/fisher
synced 2024-09-10 15:07:40 +02:00
This patch contains several amends for 0.3.0 and other minor documentation corrections. Major documentation revision and rewrite. fisher help shows fisher(1) by default now. Fix a critical bug that was causing fisher uninstall --force to remove not the symbolic link, but the actual files. Closes #24 Rename orphan tag to custom for plugins installed using a custom URL. warning Remove fisher --link flag and create symbolic links by default for local paths. The user does not have to worry about symbolic links or whether the copy is as symbolic link or not anymore. If the user tries to install a local path, then the best thing to do is to create a symbolic link. This also eliminates the need to call update. warning Remove fisher --cache and fisher --validate. Now, that these options are separated into their own function and they are intentionally private, there is no need for them.
29 lines
1.1 KiB
Fish
29 lines
1.1 KiB
Fish
complete -xc fisher -d "Ahoy! Fisherman"
|
|
|
|
complete -c fisher -n "__fish_seen_subcommand_from search" -a "\t"
|
|
complete -c fisher -n "__fish_use_subcommand" -s l -l list -d "List plugins in the cache"
|
|
complete -c fisher -n "__fish_use_subcommand" -s f -l file -d "Read a fishfile"
|
|
complete -c fisher -n "__fish_use_subcommand" -s h -l help -d "Display help"
|
|
complete -c fisher -n "__fish_use_subcommand" -s a -l alias -d "Define command aliases"
|
|
complete -c fisher -n "__fish_use_subcommand" -s v -l version -d "Show version information"
|
|
|
|
set -l IFS ";"
|
|
for option in commands guides
|
|
fisher_help --$option=bare | sed -E 's/^ *([^ ]+) *(.*)/\1;\2/' | while read -l cmd info
|
|
|
|
complete -c fisher -n "__fish_seen_subcommand_from help" -a $cmd -d "$info"
|
|
|
|
if test $option = guides
|
|
continue
|
|
end
|
|
|
|
complete -c fisher -n "__fish_use_subcommand" -a $cmd -d "$info"
|
|
|
|
fisher_help --usage=$cmd | __fisher_complete OFS=';' | while read -l 1 2 3
|
|
complete -c fisher -n "__fish_seen_subcommand_from $cmd" -s "$3" -l "$2" -d "$1"
|
|
end
|
|
end
|
|
end
|
|
|
|
__fisher_complete_cache update uninstall
|
|
__fisher_complete_remote install
|