diff --git a/Library/Homebrew/test/utils/shell_spec.rb b/Library/Homebrew/test/utils/shell_spec.rb index e0edf6fd28..02f795bee3 100644 --- a/Library/Homebrew/test/utils/shell_spec.rb +++ b/Library/Homebrew/test/utils/shell_spec.rb @@ -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 diff --git a/Library/Homebrew/utils/shell.rb b/Library/Homebrew/utils/shell.rb index edcbd26da4..5547e00b05 100644 --- a/Library/Homebrew/utils/shell.rb +++ b/Library/Homebrew/utils/shell.rb @@ -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