mirror of
https://github.com/jorgebucaran/fisher
synced 2024-10-09 09:36:53 +02:00
Load functions before conf.d.
This commit is contained in:
parent
fd282ffa6d
commit
e084aa7f7c
1 changed files with 18 additions and 18 deletions
36
fisher.fish
36
fisher.fish
|
@ -708,24 +708,6 @@ end
|
||||||
function __fisher_plugin_enable -a path
|
function __fisher_plugin_enable -a path
|
||||||
set -l plugin_name (basename $path)
|
set -l plugin_name (basename $path)
|
||||||
|
|
||||||
for file in $path/conf.d/*.{py,awk}
|
|
||||||
set -l base (basename "$file")
|
|
||||||
command ln -sf "$file" "$fish_config/conf.d/$base"
|
|
||||||
end
|
|
||||||
|
|
||||||
for file in $path/conf.d/*.fish
|
|
||||||
set -l base (basename "$file")
|
|
||||||
set -l target "$fish_config/conf.d/$base"
|
|
||||||
|
|
||||||
command ln -sf "$file" "$target"
|
|
||||||
builtin source "$target" ^ /dev/null
|
|
||||||
end
|
|
||||||
|
|
||||||
for file in $path/{functions/,}*.{py,awk}
|
|
||||||
set -l base (basename "$file")
|
|
||||||
command ln -sf "$file" "$fish_config/functions/$base"
|
|
||||||
end
|
|
||||||
|
|
||||||
for file in $path/{functions/*,}*.fish
|
for file in $path/{functions/*,}*.fish
|
||||||
set -l base (basename "$file")
|
set -l base (basename "$file")
|
||||||
|
|
||||||
|
@ -771,6 +753,24 @@ function __fisher_plugin_enable -a path
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
for file in $path/{functions/,}*.{py,awk}
|
||||||
|
set -l base (basename "$file")
|
||||||
|
command ln -sf "$file" "$fish_config/functions/$base"
|
||||||
|
end
|
||||||
|
|
||||||
|
for file in $path/conf.d/*.{py,awk}
|
||||||
|
set -l base (basename "$file")
|
||||||
|
command ln -sf "$file" "$fish_config/conf.d/$base"
|
||||||
|
end
|
||||||
|
|
||||||
|
for file in $path/conf.d/*.fish
|
||||||
|
set -l base (basename "$file")
|
||||||
|
set -l target "$fish_config/conf.d/$base"
|
||||||
|
|
||||||
|
command ln -sf "$file" "$target"
|
||||||
|
builtin source "$target" ^ /dev/null
|
||||||
|
end
|
||||||
|
|
||||||
for file in $path/completions/*.fish
|
for file in $path/completions/*.fish
|
||||||
set -l base (basename "$file")
|
set -l base (basename "$file")
|
||||||
set -l target "$fish_config/completions/$base"
|
set -l target "$fish_config/completions/$base"
|
||||||
|
|
Loading…
Reference in a new issue