Fix #8: Fishy plugin template

This commit is contained in:
Bruno Pinto 2015-10-03 22:15:40 +01:00
parent 520d597947
commit 1ab8a20b8c
5 changed files with 17 additions and 19 deletions

View File

@ -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;

View File

@ -0,0 +1,10 @@
# SYNOPSIS
# {{NAME}} [options]
#
# USAGE
# Options
#
function {{NAME}} -d "My package"
end

View File

@ -0,0 +1,3 @@
function init -a path --on-event init_{{NAME}}
end

View File

@ -0,0 +1,3 @@
function uninstall --on-event uninstall_{{NAME}}
end

View File

@ -1,18 +0,0 @@
# SYNOPSIS
# {{NAME}} [options]
#
# USAGE
# Options
#
function init -a path --on-event init_{{NAME}}
end
function {{NAME}} -d "My package"
end
function uninstall --on-event uninstall_{{NAME}}
end