fix command for powershell

the old command doesn't work and gives error

```
zoxide: PWD hooks are not supported below powershell 6.
        Use 'zoxide init powershell --hook prompt' instead.
At line:1 char:1
+ . 'C:\Users\aryan\Documents\WindowsPowerShell\Microsoft.PowerShell_pr ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Microsoft.PowerShell_profile.ps1
```
This commit is contained in:
Abhimanyu Aryan 2024-02-07 04:38:51 +05:30 committed by GitHub
parent 3022cf3686
commit 17d57a4bd7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -254,7 +254,7 @@ zoxide can be installed in 4 easy steps:
> `echo $profile` in PowerShell):
>
> ```powershell
> Invoke-Expression (& { (zoxide init powershell | Out-String) })
> Invoke-Expression (& { (zoxide init powershell --hook prompt | Out-String) })
> ```
</details>