mirror of
https://github.com/jorgebucaran/fisher
synced 2024-08-17 12:31:05 +02:00
Load conf.d first and source bindings after install. #272
This commit is contained in:
parent
c8fd7c4f62
commit
25631a88bd
1 changed files with 28 additions and 26 deletions
54
fisher.fish
54
fisher.fish
|
@ -694,6 +694,32 @@ 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/completions/*.fish
|
||||||
|
set -l base (basename "$file")
|
||||||
|
set -l target "$fish_config/completions/$base"
|
||||||
|
|
||||||
|
command ln -sf "$file" "$target"
|
||||||
|
builtin source "$target" ^ /dev/null
|
||||||
|
end
|
||||||
|
|
||||||
for file in $path/{functions/*,}*.fish
|
for file in $path/{functions/*,}*.fish
|
||||||
set -l base (basename "$file")
|
set -l base (basename "$file")
|
||||||
|
|
||||||
|
@ -738,32 +764,6 @@ function __fisher_plugin_enable -a path
|
||||||
end
|
end
|
||||||
end
|
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/{functions/,}*.{py,awk}
|
|
||||||
set -l base (basename "$file")
|
|
||||||
command ln -sf "$file" "$fish_config/functions/$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
|
|
||||||
set -l base (basename "$file")
|
|
||||||
set -l target "$fish_config/completions/$base"
|
|
||||||
|
|
||||||
command ln -sf "$file" "$target"
|
|
||||||
builtin source "$target" ^ /dev/null
|
|
||||||
end
|
|
||||||
|
|
||||||
return 0
|
return 0
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -1402,6 +1402,8 @@ function __fisher_key_bindings_append -a plugin_name file
|
||||||
'
|
'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
printf "%s\n" $plugin_key_bindings_source | source ^ /dev/null
|
||||||
|
|
||||||
printf "%s\n" $key_bindings_source $plugin_key_bindings_source | awk '
|
printf "%s\n" $key_bindings_source $plugin_key_bindings_source | awk '
|
||||||
|
|
||||||
BEGIN {
|
BEGIN {
|
||||||
|
|
Loading…
Reference in a new issue