mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-14 05:53:59 +00:00
Set up fish_{function,complete}_path properly
In the base config.fish, fish_function_path and fish_complete_path have $__fish_datadir/{functions,completions} added to them if not already present. For some reason they were replacing the final path component instead of being added on to the end.
This commit is contained in:
parent
d8b955294a
commit
f549ada16c
1 changed files with 2 additions and 2 deletions
|
@ -47,7 +47,7 @@ if not set -q fish_function_path
|
||||||
end
|
end
|
||||||
|
|
||||||
if not contains $__fish_datadir/functions $fish_function_path
|
if not contains $__fish_datadir/functions $fish_function_path
|
||||||
set fish_function_path[-1] $__fish_datadir/functions
|
set fish_function_path $fish_function_path $__fish_datadir/functions
|
||||||
end
|
end
|
||||||
|
|
||||||
if not set -q fish_complete_path
|
if not set -q fish_complete_path
|
||||||
|
@ -55,7 +55,7 @@ if not set -q fish_complete_path
|
||||||
end
|
end
|
||||||
|
|
||||||
if not contains $__fish_datadir/completions $fish_complete_path
|
if not contains $__fish_datadir/completions $fish_complete_path
|
||||||
set fish_complete_path[-1] $__fish_datadir/completions
|
set fish_complete_path $fish_complete_path $__fish_datadir/completions
|
||||||
end
|
end
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in a new issue