Fix import not getting passed the correct passed in `oh-my-fish.fish`.

To import plugins or load themes:

 + import plugins/<plugin>
 + import plugins/{dpaste,cask} themes/bobthefish

Note: Plugins/Themes can be in either `custom/plugins`, `custom/themes` or `$fish_path/plugins/`, `$fish_path/themes/`.
pull/2/head
Jorge Bucaran 10 years ago
parent 1c795f0e78
commit 16888838b0

@ -91,8 +91,8 @@ function _prepend_tree -d "Add a dependency tree to the Fish path."
# Traverse $path and $subs prepending only directories with matches.
for dir in $path $subs
# Use head to retrieve at least one match. Ignore errors for non
# existing directories
# Use head to retrieve at least one match. Skip not found errors
# for directories that do not exist.
if [ -z (find "$dir" $glob -maxdepth 1 ^/dev/null | head -1) ]
continue
end

@ -15,7 +15,8 @@
# in ~/.config/fish/config.fish
#
# EXAMPLES
# import dpaste cask themes/bobthefish
# import plugins/<plugin>
# import plugins/{dpaste,cask} themes/bobthefish
#
# AUTHORS
# Jorge Bucaran <jbucaran@me.com>

@ -20,7 +20,7 @@ end
# a directory under $fish_path/custom/themes with the same name as
# the theme and override any functions/variables there. Rinse and
# repeat for plugins.
import $fish_plugins themes/$fish_theme
import plugins/$fish_plugins themes/$fish_theme
# Source all files inside custom directory.
for load in $fish_custom/*.load

Loading…
Cancel
Save