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
436e0306
Commit
436e0306
authored
Oct 03, 2015
by
Bruno
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #97 from oh-my-fish/fishy_uninstall
Fishy packages
parents
b4aa5a44
1ab8a20b
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
18 additions
and
2 deletions
+18
-2
lib/require.fish
lib/require.fish
+1
-1
pkg/omf/cli/omf.remove_package.fish
pkg/omf/cli/omf.remove_package.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 @
436e0306
...
...
@@ -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;
...
...
pkg/omf/cli/omf.remove_package.fish
View file @
436e0306
...
...
@@ -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
...
...
pkg/omf/templates/pkg/{{NAME}}.fish
→
pkg/omf/templates/pkg/
functions/
{{NAME}}.fish
View file @
436e0306
...
...
@@ -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
pkg/omf/templates/pkg/init.fish
0 → 100644
View file @
436e0306
function init -a path --on-event init_{{NAME}}
end
pkg/omf/templates/pkg/uninstall.fish
0 → 100644
View file @
436e0306
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