mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 12:53:13 +00:00
Use universal variables for fish_function_path and fish_complete_path
darcs-hash:20061004175519-ac50b-2e9dabc9ce1c21ebfcba020db8a8d84ef48433e9.gz
This commit is contained in:
parent
0c7f74c78d
commit
80ff583400
2 changed files with 13 additions and 10 deletions
|
@ -3,13 +3,6 @@
|
||||||
#
|
#
|
||||||
# @configure_input@
|
# @configure_input@
|
||||||
|
|
||||||
#
|
|
||||||
# Set default search paths for completions and shellscript functions
|
|
||||||
#
|
|
||||||
|
|
||||||
set -g fish_function_path ~/.fish.d/functions @sysconfdir@/fish.d/functions @datadir@/fish/functions
|
|
||||||
set -g fish_complete_path ~/.fish.d/completions @sysconfdir@/fish.d/completions @datadir@/fish/completions
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Set default field separators
|
# Set default field separators
|
||||||
#
|
#
|
||||||
|
|
|
@ -5,10 +5,20 @@
|
||||||
#
|
#
|
||||||
# @configure_input@
|
# @configure_input@
|
||||||
|
|
||||||
# Assign a temporary value here for performance reasons. The real
|
#
|
||||||
# value should be set in /etc/fish.
|
# Set default search paths for completions and shellscript functions
|
||||||
|
# unless they already exist
|
||||||
|
#
|
||||||
|
|
||||||
|
if not set -q fish_function_path
|
||||||
|
set -U fish_function_path ~/.fish.d/functions @sysconfdir@/fish.d/functions @datadir@/fish/functions
|
||||||
|
end
|
||||||
|
|
||||||
|
if not set -q fish_complete_path
|
||||||
|
set -U fish_complete_path ~/.fish.d/completions @sysconfdir@/fish.d/completions @datadir@/fish/completions
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
set -g fish_function_path @datadir@/fish/functions/
|
|
||||||
set __fish_help_dir @docdir@
|
set __fish_help_dir @docdir@
|
||||||
|
|
||||||
# This is a Solaris-specific test to modify the PATH so that
|
# This is a Solaris-specific test to modify the PATH so that
|
||||||
|
|
Loading…
Reference in a new issue