Commit 436e0306 authored by Bruno's avatar Bruno

Merge pull request #97 from oh-my-fish/fishy_uninstall

Fishy packages
parents b4aa5a44 1ab8a20b
......@@ -16,7 +16,7 @@ function require -a name
and return 0
for path in {$OMF_PATH,$OMF_CONFIG}/pkg/$name
if autoload $path $path/completions
if autoload $path $path/functions $path/completions
source $path/init.fish ^/dev/null;
or source $path/$name.fish ^/dev/null;
......
......@@ -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
......
......@@ -5,14 +5,6 @@
# Options
#
function init -a path --on-event init_{{NAME}}
end
function {{NAME}} -d "My package"
end
function uninstall --on-event uninstall_{{NAME}}
end
function init -a path --on-event init_{{NAME}}
end
function uninstall --on-event uninstall_{{NAME}}
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment