Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 0 additions & 16 deletions src/Cli/dotnet/CommonLocalizableStrings.resx
Original file line number Diff line number Diff line change
Expand Up @@ -566,22 +566,6 @@ EOF

You can add it to the current session by running the following command:

export PATH="$PATH:{0}"
</value>
</data>
<data name="EnvironmentPathOSXZshManualInstructions" xml:space="preserve">
<value>Tools directory '{0}' is not currently on the PATH environment variable.
If you are using zsh, you can add it to your profile by running the following command:

cat &lt;&lt; \EOF &gt;&gt; ~/.zprofile
# Add .NET Core SDK tools
export PATH="$PATH:{0}"
EOF

And run `zsh -l` to make it available for current session.

You can only add it to the current session by running the following command:

export PATH="$PATH:{0}"
</value>
</data>
Expand Down
10 changes: 1 addition & 9 deletions src/Cli/dotnet/ShellShim/EnvironmentPathFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public static IEnvironmentPath CreateEnvironmentPath(
}
else if (OperatingSystem.IsMacOS() && isDotnetBeingInvokedFromNativeInstaller)
{
environmentPath = new OsxBashEnvironmentPath(
environmentPath = new OsxEnvironmentPath(
executablePath: CliFolderPathCalculator.ToolsShimPathInUnix,
reporter: Reporter.Output,
environmentProvider: environmentProvider,
Expand All @@ -64,14 +64,6 @@ public static IEnvironmentPathInstruction CreateEnvironmentPathInstruction(
environmentProvider = new EnvironmentProvider();
}

if (OperatingSystem.IsMacOS() && ZshDetector.IsZshTheUsersShell(environmentProvider))
{
return new OsxZshEnvironmentPathInstruction(
executablePath: CliFolderPathCalculator.ToolsShimPathInUnix,
reporter: Reporter.Output,
environmentProvider: environmentProvider);
}

if (OperatingSystem.IsWindows())
{
return new WindowsEnvironmentPath(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

namespace Microsoft.DotNet.ShellShim
{
internal class OsxBashEnvironmentPath : IEnvironmentPath
internal class OsxEnvironmentPath : IEnvironmentPath
{
private const string PathName = "PATH";
private readonly BashPathUnderHomeDirectory _packageExecutablePath;
Expand All @@ -20,7 +20,7 @@ internal static readonly string DotnetCliToolsPathsDPath
= Environment.GetEnvironmentVariable("DOTNET_CLI_TEST_OSX_PATHSD_PATH")
?? @"/etc/paths.d/dotnet-cli-tools";

public OsxBashEnvironmentPath(
public OsxEnvironmentPath(
BashPathUnderHomeDirectory executablePath,
IReporter reporter,
IEnvironmentProvider environmentProvider,
Expand All @@ -42,7 +42,7 @@ public void AddPackageExecutablePathToUserPath()
return;
}

_fileSystem.WriteAllText(DotnetCliToolsPathsDPath, _packageExecutablePath.PathWithTilde);
_fileSystem.WriteAllText(DotnetCliToolsPathsDPath, _packageExecutablePath.Path);
}

private bool PackageExecutablePathExists()
Expand Down
56 changes: 0 additions & 56 deletions src/Cli/dotnet/ShellShim/OsxZshEnvironmentPathInstruction.cs

This file was deleted.

30 changes: 0 additions & 30 deletions src/Cli/dotnet/ShellShim/ZshDetector.cs

This file was deleted.

31 changes: 0 additions & 31 deletions src/Cli/dotnet/xlf/CommonLocalizableStrings.cs.xlf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

31 changes: 0 additions & 31 deletions src/Cli/dotnet/xlf/CommonLocalizableStrings.de.xlf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

31 changes: 0 additions & 31 deletions src/Cli/dotnet/xlf/CommonLocalizableStrings.es.xlf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

31 changes: 0 additions & 31 deletions src/Cli/dotnet/xlf/CommonLocalizableStrings.fr.xlf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

31 changes: 0 additions & 31 deletions src/Cli/dotnet/xlf/CommonLocalizableStrings.it.xlf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

31 changes: 0 additions & 31 deletions src/Cli/dotnet/xlf/CommonLocalizableStrings.ja.xlf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading