mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-04-20 07:51:14 -03:00
Source : function without any C++ hacks
Thanks, @faho
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user