From 520d5979479f36c51deed136493b0a29a1ef1adc Mon Sep 17 00:00:00 2001 From: Bruno Pinto Date: Sat, 3 Oct 2015 22:11:49 +0100 Subject: [PATCH] Source `uninstall.fish` file before emitting event Instead of having every plugin function inside the same file, which increases the loading time unnecessarily and is not fishy, source the `uninstall.fish` file for the plugin before the `uninstall_$plugin_name` event is emitted. --- pkg/omf/cli/omf.remove_package.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/omf/cli/omf.remove_package.fish b/pkg/omf/cli/omf.remove_package.fish index 66baa34..bbf2865 100644 --- a/pkg/omf/cli/omf.remove_package.fish +++ b/pkg/omf/cli/omf.remove_package.fish @@ -15,7 +15,7 @@ function omf.remove_package for path in {$OMF_PATH,$OMF_CONFIG}/{pkg}/$pkg not test -d $path; and continue - emit uninstall_$pkg + source $path/uninstall.fish; and emit uninstall_$pkg omf.bundle.remove "package" $pkg rm -rf $path