Use universal variables for fish_function_path and fish_complete_path

darcs-hash:20061004175519-ac50b-2e9dabc9ce1c21ebfcba020db8a8d84ef48433e9.gz
This commit is contained in:
axel 2006-10-05 03:55:19 +10:00
parent 0c7f74c78d
commit 80ff583400
2 changed files with 13 additions and 10 deletions

View file

@ -3,13 +3,6 @@
#
# @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
#

View file

@ -5,10 +5,20 @@
#
# @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@
# This is a Solaris-specific test to modify the PATH so that