Update 2.0.0-known-issues.md

Replace '~/' with '$HOME/'
This commit is contained in:
Lee Coward 2017-08-28 13:08:31 -07:00 committed by GitHub
parent 5f845efbe9
commit 5ad94255af

View file

@ -20,7 +20,7 @@ If you do dotnet new {template name} at the linux root and do not specify a name
## Install requirements changed when installing from tar.gz
Changes in the .NET Core CLI first run behavior need to be executed in locations which the user has change permissions. For this reason, guidance for installing from binary archive on Linux and Mac has changed from /opt/dotnet to ~/dotnet and the dotnet directory must be created with user permissions rather than as sudo.
Changes in the .NET Core CLI first run behavior need to be executed in locations which the user has change permissions. For this reason, guidance for installing from binary archive on Linux and Mac has changed from /opt/dotnet to $HOME/dotnet and the dotnet directory must be created with user permissions rather than as sudo.
If the user does not have permissions to the dotnet directory when attempting to run a dotnet command for the first time a number of permissions errors will result.
@ -29,11 +29,11 @@ mkdir -p $HOME/dotnet && tar zxf dotnet.tar.gz -C $HOME/dotnet
export PATH=$PATH:$HOME/dotnet
```
The above command will place `~/dotnet` on the path only for the terminal session in which it was run. You can edit your shell profile to permanently place `~/dotnet` on the path. There are a number of different shells available for Linux and each has a different profile. For example:
The above command will place `$HOME/dotnet` on the path only for the terminal session in which it was run. You can edit your shell profile to permanently place `$HOME/dotnet` on the path. There are a number of different shells available for Linux and each has a different profile. For example:
* Bash Shell: ~/.bash_profile, ~/.bashrc
* Korn Shell: ~/.kshrc or .profile
* Z Shell: ~/.zshrc or .zprofile
* Bash Shell: $HOME/.bash_profile, $HOME/.bashrc
* Korn Shell: $HOME/.kshrc or .profile
* Z Shell: $HOME/.zshrc or .zprofile
Edit the appropriate source file for you shell and either add `:$HOME/dotnet` to the end of the exiting PATH statement or, if no PATH statment is included, add a new line with `export PATH=$PATH:$HOME/dotnet`.