mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-13 21:44:16 +00:00
config.fish: drop PATH modifications on Solaris-derived systems
Fixes #6556. Although present since 2006, fish no longer relies on POSIX-compliant tools to the same degree. This code causes a platform specific change that makes the tests fail, so remove it.
This commit is contained in:
parent
3f6884e5a1
commit
43edbf4a91
1 changed files with 0 additions and 13 deletions
|
@ -115,19 +115,6 @@ function : -d "no-op function"
|
|||
true
|
||||
end
|
||||
|
||||
#
|
||||
# This is a Solaris-specific test to modify the PATH so that
|
||||
# Posix-conformant tools are used by default. It is separate from the
|
||||
# other PATH code because this directory needs to be prepended, not
|
||||
# appended, since it contains POSIX-compliant replacements for various
|
||||
# system utilities.
|
||||
#
|
||||
|
||||
if test -d /usr/xpg4/bin
|
||||
not contains -- /usr/xpg4/bin $PATH
|
||||
and set PATH /usr/xpg4/bin $PATH
|
||||
end
|
||||
|
||||
# Add a handler for when fish_user_path changes, so we can apply the same changes to PATH
|
||||
function __fish_reconstruct_path -d "Update PATH when fish_user_paths changes" --on-variable fish_user_paths
|
||||
set -l local_path $PATH
|
||||
|
|
Loading…
Reference in a new issue