gazorby / fifc

🐠 Configurable fzf completions for fish shell
MIT License
123 stars 7 forks source link

Errors in uninstall hook #46

Open halostatue opened 1 week ago

halostatue commented 1 week ago

Describe the bug

Errors are printed while running the fisher uninstall hook.

To Reproduce

Steps to reproduce the behavior:

$ fisher remove gazorby/fifc
fisher remove version 4.4.4
set: --erase: option requires an argument

~/.config/fish/conf.d/fifc.fish (line 68):
        set -e $_fifc_ordered_comp[$i]
        ^
in function '_fifc_uninstall'
    called on line 1 of file ~/.config/fish/functions/fisher.fish
in event handler: handler for generic event “fifc_uninstall”
    called on line 135 of file ~/.config/fish/functions/fisher.fish

(Type 'help set' for related documentation)
~/.config/fish/conf.d/fifc.fish (line 68): array indices start at 1, not 0.
        set -e $_fifc_ordered_comp[$i]
                                    ^
in function '_fifc_uninstall'
    called on line 1 of file ~/.config/fish/functions/fisher.fish
in event handler: handler for generic event “fifc_uninstall”
    called on line 135 of file ~/.config/fish/functions/fisher.fish

System (please complete the following information):