Source : function without any C++ hacks

Thanks, @faho
This commit is contained in:
Mahmoud Al-Qudsi
2018-03-15 18:18:57 -05:00
parent 5732aeac9a
commit 5a561bcfce
6 changed files with 11 additions and 17 deletions

View File

@@ -105,6 +105,13 @@ if not contains -- $__fish_data_dir/completions $fish_complete_path
set fish_complete_path $fish_complete_path $__fish_data_dir/completions
end
# : is a sh/bash-compatibility function, but because its name can cause problems on many
# systems, it is saved as colon.fish and not :.fish, which means that it's never autoloaded
# since the name of the file and the name of the function differ. Force evaluation of colon.fish
# as a function by simply trying to load the non-existent function colon, which will pull in
# colon.fish and lead to `:` being recognized. Sourced up here so it can be used later safely.
type -q colon; or true # just to reset $status
#
# This is a Solaris-specific test to modify the PATH so that
# Posix-conformant tools are used by default. It is separate from the