From 7ee02189edd191c040d0df3971d45cf6643832d6 Mon Sep 17 00:00:00 2001 From: "Raghu Shantha [MSFT]" Date: Mon, 1 Aug 2016 13:46:48 -0700 Subject: [PATCH 1/5] Update linux.md --- docs/installation/linux.md | 33 ++++++++++++++++++++------------- 1 file changed, 20 insertions(+), 13 deletions(-) diff --git a/docs/installation/linux.md b/docs/installation/linux.md index 802dab4b43..659bbbb5e4 100644 --- a/docs/installation/linux.md +++ b/docs/installation/linux.md @@ -1,26 +1,20 @@ Package installation instructions ================================= -Supports Ubuntu 14.04, CentOS 7.1, and OS X 10.11. +Supports [Ubuntu 14.04](Ubuntu14.04), [CentOS 7.1](CentOS7.1), and [OS X 10.11](OSX10.11). All packages are available on our GitHub [releases][] page. -Once the package is installed, `powershell` will be in your path, ready to be launched from a terminal. +Once the package is installed, run `powershell` from a terminal. -* User profiles will be read from `~/.config/powershell/profile.ps1`. -* User modules will be read from `~/.local/share/powershell/Modules` -* PSReadLine history will be recorded to `~/.local/share/powershell/PSReadLine/ConsoleHost_history.txt` -* System profiles will be read from `/opt/microsoft/powershell/profile.ps1`. -* System modules will be read from `/opt/microsoft/powershell/Modules` - -The profiles respect PowerShell's per-host configuration, so the default host-specific profiles exists at `Microsoft.PowerShell_profile.ps1` in the same locations. - -On Linux and OS X, the [XDG Base Directory Specification][xdg-bds] is respected. - -> Note that to place PowerShell in your path, the packages create a symlink from `/usr/bin/powershell` to the `/opt/microsoft/powershell/powershell` executable. +> There is a symlink created from `/usr/bin/powershell` to `/opt/microsoft/powershell/powershell` to ensure `powershell` is in your path. [releases]: https://github.com/PowerShell/PowerShell/releases/latest [xdg-bds]: https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html +[Ubuntu14.04]: ./linux.md#Ubuntu-14.04 +[CentOS7.1]: ./linux.md#CentOS-7 +[OSX10.11]: ./linux.md#OS-X-10.11 + Ubuntu 14.04 ============ @@ -66,3 +60,16 @@ sudo installer -pkg powershell-6.0.0-alpha.7.pkg -target / > Note that because OS X is a derivation of BSD, instead of `/opt`, the prefix used is `/usr/local`. > Thus, `powershell` lives at `/usr/local/microsoft/powershell`, and the symlink is placed at `/usr/local/bin/powershell`. > This affects the system modules and profiles as well. + +Paths +===== + +* User profiles will be read from `~/.config/powershell/profile.ps1`. +* User modules will be read from `~/.local/share/powershell/Modules` +* PSReadLine history will be recorded to `~/.local/share/powershell/PSReadLine/ConsoleHost_history.txt` +* System profiles will be read from `/opt/microsoft/powershell/profile.ps1`. +* System modules will be read from `/opt/microsoft/powershell/Modules` + +The profiles respect PowerShell's per-host configuration, so the default host-specific profiles exists at `Microsoft.PowerShell_profile.ps1` in the same locations. + +On Linux and OS X, the [XDG Base Directory Specification][xdg-bds] is respected. From c9949159f16bf8cc80f66cc55b2ec65fa0e8285a Mon Sep 17 00:00:00 2001 From: "Raghu Shantha [MSFT]" Date: Mon, 1 Aug 2016 13:52:15 -0700 Subject: [PATCH 2/5] Update linux.md --- docs/installation/linux.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/installation/linux.md b/docs/installation/linux.md index 659bbbb5e4..a15496d851 100644 --- a/docs/installation/linux.md +++ b/docs/installation/linux.md @@ -11,9 +11,9 @@ Once the package is installed, run `powershell` from a terminal. [releases]: https://github.com/PowerShell/PowerShell/releases/latest [xdg-bds]: https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html -[Ubuntu14.04]: ./linux.md#Ubuntu-14.04 -[CentOS7.1]: ./linux.md#CentOS-7 -[OSX10.11]: ./linux.md#OS-X-10.11 +[Ubuntu14.04]:./linux.md#ubuntu-1404 +[CentOS7.1]:./linux.md#centos-7 +[OSX10.11]: ./linux.md#os-x-1011 Ubuntu 14.04 ============ From 6efad14aa612d21cb7250ef090276d1324bcbd3e Mon Sep 17 00:00:00 2001 From: "Raghu Shantha [MSFT]" Date: Mon, 1 Aug 2016 13:55:00 -0700 Subject: [PATCH 3/5] Update linux.md --- docs/installation/linux.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/installation/linux.md b/docs/installation/linux.md index a15496d851..e77c277cbc 100644 --- a/docs/installation/linux.md +++ b/docs/installation/linux.md @@ -1,7 +1,7 @@ Package installation instructions ================================= -Supports [Ubuntu 14.04](Ubuntu14.04), [CentOS 7.1](CentOS7.1), and [OS X 10.11](OSX10.11). +Supports [Ubuntu 14.04][Ubuntu14.04], [CentOS 7.1][CentOS7.1], and [OS X 10.11][OSX10.11]. All packages are available on our GitHub [releases][] page. Once the package is installed, run `powershell` from a terminal. @@ -13,7 +13,7 @@ Once the package is installed, run `powershell` from a terminal. [Ubuntu14.04]:./linux.md#ubuntu-1404 [CentOS7.1]:./linux.md#centos-7 -[OSX10.11]: ./linux.md#os-x-1011 +[OSX10.11]:./linux.md#os-x-1011 Ubuntu 14.04 ============ From 818bbfda133cc69ac1b3a634fb952aa5e20cb596 Mon Sep 17 00:00:00 2001 From: "Raghu Shantha [MSFT]" Date: Mon, 1 Aug 2016 16:32:16 -0700 Subject: [PATCH 4/5] Update linux.md --- docs/installation/linux.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/installation/linux.md b/docs/installation/linux.md index e77c277cbc..c0110db44a 100644 --- a/docs/installation/linux.md +++ b/docs/installation/linux.md @@ -6,8 +6,6 @@ All packages are available on our GitHub [releases][] page. Once the package is installed, run `powershell` from a terminal. -> There is a symlink created from `/usr/bin/powershell` to `/opt/microsoft/powershell/powershell` to ensure `powershell` is in your path. - [releases]: https://github.com/PowerShell/PowerShell/releases/latest [xdg-bds]: https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html @@ -73,3 +71,5 @@ Paths The profiles respect PowerShell's per-host configuration, so the default host-specific profiles exists at `Microsoft.PowerShell_profile.ps1` in the same locations. On Linux and OS X, the [XDG Base Directory Specification][xdg-bds] is respected. + +> There is a symlink created from `/usr/bin/powershell` to `/opt/microsoft/powershell/powershell` to ensure `powershell` is in your path. From d884ef2f988bc323917bc738dba4950057b472af Mon Sep 17 00:00:00 2001 From: "Raghu Shantha [MSFT]" Date: Mon, 1 Aug 2016 16:33:47 -0700 Subject: [PATCH 5/5] Update linux.md --- docs/installation/linux.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/installation/linux.md b/docs/installation/linux.md index c0110db44a..00aab4e91c 100644 --- a/docs/installation/linux.md +++ b/docs/installation/linux.md @@ -6,9 +6,6 @@ All packages are available on our GitHub [releases][] page. Once the package is installed, run `powershell` from a terminal. -[releases]: https://github.com/PowerShell/PowerShell/releases/latest -[xdg-bds]: https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html - [Ubuntu14.04]:./linux.md#ubuntu-1404 [CentOS7.1]:./linux.md#centos-7 [OSX10.11]:./linux.md#os-x-1011 @@ -73,3 +70,7 @@ The profiles respect PowerShell's per-host configuration, so the default host-sp On Linux and OS X, the [XDG Base Directory Specification][xdg-bds] is respected. > There is a symlink created from `/usr/bin/powershell` to `/opt/microsoft/powershell/powershell` to ensure `powershell` is in your path. + + +[releases]: https://github.com/PowerShell/PowerShell/releases/latest +[xdg-bds]: https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html