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
0e21d6be
Commit
0e21d6be
authored
May 19, 2015
by
Jorge Bucaran
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #458 from nirvdrum/custom_completions_load_fix
Custom completions load fix
parents
c17ff864
a06a58fc
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
0 deletions
+8
-0
custom/plugins/example/completions/example.fish
custom/plugins/example/completions/example.fish
+2
-0
functions/import.fish
functions/import.fish
+1
-0
spec/import.spec.fish
spec/import.spec.fish
+5
-0
No files found.
custom/plugins/example/completions/example.fish
0 → 100644
View file @
0e21d6be
# Optionally add completions for your plugin here.
# complete -f -c my_command -a some_arg -d 'Description here'
functions/import.fish
View file @
0e21d6be
...
...
@@ -38,6 +38,7 @@ function import -d "Load libraries, plugins, themes, etc."
_prepend_tree $fish_path/$library $skip_spec
_prepend_tree $fish_custom/$library $skip_spec
_prepend_path $fish_path/$library/completions -d fish_complete_path
_prepend_path $fish_custom/$library/completions -d fish_complete_path
# Set path to load files.
set -l path $library/(basename $library).load
...
...
spec/import.spec.fish
View file @
0e21d6be
...
...
@@ -37,6 +37,11 @@ function describe_import
import plugins/git-flow
expect $fish_complete_path --to-contain-all $fish_path/plugins/git-flow/completions
end
function it_adds_completion_files_for_custom_plugins_to_completion_path
import plugins/example
expect $fish_complete_path --to-contain-all $fish_custom/plugins/example/completions
end
end
spec.run $argv
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