mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-22 00:05:41 +08:00
Make sure that function and completion paths contain contain the basic fish completions/functions on startup.
darcs-hash:20071028091042-75c98-4e201b1b39c7c7b66ff9ec71f95b05f8d6d42708.gz
This commit is contained in:
parent
348e991d7c
commit
74cd64ba21
@ -38,10 +38,18 @@ if not set -q fish_function_path
|
||||
set -U fish_function_path $configdir/fish/functions @sysconfdir@/fish/functions @datadir@/fish/functions
|
||||
end
|
||||
|
||||
if not contains @datadir@/fish/functions $fish_function_path
|
||||
set fish_function_path[-1] @datadir@/fish/functions
|
||||
end
|
||||
|
||||
if not set -q fish_complete_path
|
||||
set -U fish_complete_path $configdir/fish/completions @sysconfdir@/fish/completions @datadir@/fish/completions
|
||||
end
|
||||
|
||||
if not contains @datadir@/fish/completions $fish_complete_path
|
||||
set fish_complete_path[-1] @datadir@/fish/completions
|
||||
end
|
||||
|
||||
set __fish_help_dir @docdir@
|
||||
|
||||
#
|
||||
|
Loading…
x
Reference in New Issue
Block a user