Skip to content

Commit 198a643

Browse files
authored
Update Upgrading section to make it more clear (#1377)
1 parent d8e46d6 commit 198a643

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

README.md

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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

96101
If you are using the version of `PSReadLine` that ships with Windows PowerShell,
97102
you 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

107112
If you get an error like:
108113

109-
```powershell
114+
```none
110115
Remove-Item : Cannot remove item
111116
C:\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+
115126
Then you didn't kill all the processes that loaded `PSReadLine`.
116127

117128
## Usage

0 commit comments

Comments
 (0)