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
465e325a
Commit
465e325a
authored
Jan 13, 2015
by
Bruno
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #308 from bucaran/fix-prepend-tree-299
Do not add test/spec files to function path in _prepend_tree.
parents
081f3f5b
48755767
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
functions/import.fish
functions/import.fish
+8
-4
No files found.
functions/import.fish
View file @
465e325a
...
@@ -12,7 +12,8 @@
...
@@ -12,7 +12,8 @@
# NOTES
# NOTES
# $fish_path and $fish_custom point to oh-my-fish home and the user
# $fish_path and $fish_custom point to oh-my-fish home and the user
# dotfiles folder respectively. Both globals are usually configured
# dotfiles folder respectively. Both globals are usually configured
# in ~/.config/fish/config.fish
# in ~/.config/fish/config.fish. Also, import is clever enough to
# skip directories with *.spec.fish files.
#
#
# EXAMPLES
# EXAMPLES
# import plugins/<plugin>
# import plugins/<plugin>
...
@@ -25,14 +26,17 @@
...
@@ -25,14 +26,17 @@
# functions/_prepend_path.fish
# functions/_prepend_path.fish
# functions/_prepend_tree.fish
# functions/_prepend_tree.fish
#
#
# v.0.1.
0
# v.0.1.
1
#/
#/
function import -d "Load libraries, plugins, themes, etc."
function import -d "Load libraries, plugins, themes, etc."
# Do not add spec files to function path.
set -l skip_spec \*.fish -a ! \*.spec.fish
for library in $argv
for library in $argv
# Prepend plugins, themes and completions, traversing library
# Prepend plugins, themes and completions, traversing library
# trees and prepending directories with fish code.
# trees and prepending directories with fish code.
_prepend_tree $fish_path/$library
_prepend_tree $fish_path/$library
$skip_spec
_prepend_tree $fish_custom/$library
_prepend_tree $fish_custom/$library
$skip_spec
_prepend_path $fish_path/$library/completions -d fish_complete_path
_prepend_path $fish_path/$library/completions -d fish_complete_path
# Set path to load files.
# Set path to load files.
...
...
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