@@ -90,8 +90,13 @@ In either case, you can create the appropriate file if you don't already have on
90
90
91
91
## Upgrading
92
92
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
+
95
100
96
101
If you are using the version of ` PSReadLine ` that ships with Windows PowerShell,
97
102
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.
106
111
107
112
If you get an error like:
108
113
109
- ``` powershell
114
+ ``` none
110
115
Remove-Item : Cannot remove item
111
116
C:\Users\{yourName}\Documents\WindowsPowerShell\Modules\PSReadLine\Microsoft.PowerShell.PSReadLine.dll: Access to the path
112
117
'C:\Users\{yourName}\Documents\WindowsPowerShell\Modules\PSReadLine\Microsoft.PowerShell.PSReadLine.dll' is denied.
113
118
```
114
119
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
+
115
126
Then you didn't kill all the processes that loaded ` PSReadLine ` .
116
127
117
128
## Usage
0 commit comments