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
e0785f89
Commit
e0785f89
authored
Jul 29, 2012
by
Bruno Pinto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
loading all .load.fish files even inside plugins
parent
ed76c2e5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
1 deletion
+15
-1
oh-my-fish.fish
oh-my-fish.fish
+15
-1
No files found.
oh-my-fish.fish
View file @
e0785f89
...
...
@@ -28,6 +28,19 @@ function _fish_add_completion
end
end
function _fish_source_plugin_load_file
set -l plugin $argv[1]
set -l load_file_path "plugins/$plugin/$plugin.load.fish"
if test -e $FISH/$load_file_path
. $FISH/$load_file_path
end
if test -e $FISH_CUSTOM/$load_file_path
. $FISH_CUSTOM/$load_file_path
end
end
###
# Configuration
###
...
...
@@ -49,13 +62,14 @@ set fish_function_path $FISH/functions/ $fish_function_path
for plugin in $FISH_PLUGINS
_fish_add_plugin $plugin
_fish_add_completion $plugin
_fish_source_plugin_load_file $plugin
end
# Add user defined theme
set fish_function_path $FISH/themes/$FISH_THEME $fish_function_path
# Source all files inside custom folder
for config_file in $FISH_CUSTOM/*.fish
for config_file in $FISH_CUSTOM/*.
load.
fish
. $config_file
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