Merge pull request #12839 from shroudedcode/fix-fish_add_path

This commit is contained in:
Carlo Cabrera 2022-02-08 06:16:00 +08:00 committed by GitHub
commit b28dba9861
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -98,7 +98,7 @@ describe Utils::Shell do
ENV["SHELL"] = "/usr/local/bin/fish"
ENV["fish_user_paths"] = "/some/path"
expect(described_class.prepend_path_in_profile(path))
.to eq("echo 'fish_add_path #{path}' >> #{shell_profile}")
.to eq("fish_add_path #{path}")
end
end
end

View File

@ -78,7 +78,7 @@ module Utils
when :csh, :tcsh
"echo 'setenv PATH #{csh_quote(path)}:$PATH' >> #{profile}"
when :fish
"echo 'fish_add_path #{sh_quote(path)}' >> #{profile}"
"fish_add_path #{sh_quote(path)}"
end
end