mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-03 23:11:14 -03: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:
committed by
ridiculousfish
parent
d8b955294a
commit
f549ada16c
@@ -47,7 +47,7 @@ if not set -q fish_function_path
|
||||
end
|
||||
|
||||
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
|
||||
|
||||
if not set -q fish_complete_path
|
||||
@@ -55,7 +55,7 @@ if not set -q fish_complete_path
|
||||
end
|
||||
|
||||
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
|
||||
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user