@@ -90,8 +90,13 @@ In either case, you can create the appropriate file if you don't already have on
9090
9191## Upgrading
9292
93- When running one of the suggested commands below, be sure to exit all instances of ` powershell.exe ` , ` pwsh.exe ` or ` pwsh ` ,
94- then run the suggested command from ` cmd.exe ` , ` powershell_ise.exe ` , or via the ` Win+R ` shortcut to make sure ` PSReadLine ` isn't loaded.
93+ When running one of the suggested commands below, be sure to exit all instances of ` powershell.exe ` , ` pwsh.exe ` or ` pwsh ` ,
94+ including those opened in ` VSCode ` terminals.
95+
96+ Then, to make sure ` PSReadLine ` isn't loaded:
97+ - _ if you are on Windows_ , run the suggested command below from ` cmd.exe ` , ` powershell_ise.exe ` , or via the ` Win+R ` shortcut;
98+ - _ if you are on Linux/macOS_ , run the suggested command below from the default terminal (like ` bash ` or ` zsh ` ).
99+
95100
96101If you are using the version of ` PSReadLine ` that ships with Windows PowerShell,
97102you need to run: ` powershell -noprofile -command "Install-Module PSReadLine -Force -SkipPublisherCheck -AllowPrerelease" ` .
@@ -106,12 +111,18 @@ depending on the version of PowerShell you are using.
106111
107112If you get an error like:
108113
109- ``` powershell
114+ ``` none
110115Remove-Item : Cannot remove item
111116C:\Users\{yourName}\Documents\WindowsPowerShell\Modules\PSReadLine\Microsoft.PowerShell.PSReadLine.dll: Access to the path
112117'C:\Users\{yourName}\Documents\WindowsPowerShell\Modules\PSReadLine\Microsoft.PowerShell.PSReadLine.dll' is denied.
113118```
114119
120+ or a warning like:
121+
122+ ``` none
123+ WARNING: The version '2.0.0' of module 'PSReadLine' is currently in use. Retry the operation after closing the applications.
124+ ```
125+
115126Then you didn't kill all the processes that loaded ` PSReadLine ` .
116127
117128## Usage
0 commit comments