Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
O
oh-my-fish
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
oh-my-fish
Commits
1ab8a20b
Commit
1ab8a20b
authored
Oct 03, 2015
by
Bruno Pinto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix #8: Fishy plugin template
parent
520d5979
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
1 deletion
+17
-1
lib/require.fish
lib/require.fish
+1
-1
pkg/omf/templates/pkg/functions/{{NAME}}.fish
pkg/omf/templates/pkg/functions/{{NAME}}.fish
+10
-0
pkg/omf/templates/pkg/init.fish
pkg/omf/templates/pkg/init.fish
+3
-0
pkg/omf/templates/pkg/uninstall.fish
pkg/omf/templates/pkg/uninstall.fish
+3
-0
No files found.
lib/require.fish
View file @
1ab8a20b
...
@@ -16,7 +16,7 @@ function require -a name
...
@@ -16,7 +16,7 @@ function require -a name
and return 0
and return 0
for path in {$OMF_PATH,$OMF_CONFIG}/pkg/$name
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;
source $path/init.fish ^/dev/null;
or source $path/$name.fish ^/dev/null;
or source $path/$name.fish ^/dev/null;
...
...
pkg/omf/templates/pkg/{{NAME}}.fish
→
pkg/omf/templates/pkg/
functions/
{{NAME}}.fish
View file @
1ab8a20b
...
@@ -5,14 +5,6 @@
...
@@ -5,14 +5,6 @@
# Options
# Options
#
#
function init -a path --on-event init_{{NAME}}
end
function {{NAME}} -d "My package"
function {{NAME}} -d "My package"
end
end
function uninstall --on-event uninstall_{{NAME}}
end
pkg/omf/templates/pkg/init.fish
0 → 100644
View file @
1ab8a20b
function init -a path --on-event init_{{NAME}}
end
pkg/omf/templates/pkg/uninstall.fish
0 → 100644
View file @
1ab8a20b
function uninstall --on-event uninstall_{{NAME}}
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment