Closed abhinitrajput closed 3 months ago
Hey @abhinitrajput, it does work, it has just been changed
Just use:
cd
instead of z
cdi
instead of zi
If you wish to keep using the old, shorter z
, zi
, you can edit your profile.ps1
file
Edit-Profile
functionSet-Alias -Name z -Value __zoxide_z
Set-Alias -Name zi -Value __zoxide_zi
Once you reload the shell, you will have the old commands available (alongside with the cd, cdi commands)
Merging pull request https://github.com/ChrisTitusTech/powershell-profile/pull/70 changed the way your powershell session initializes zoxide
I believe, correct me if i'm wrong, that running the line
Invoke-Expression (& { (zoxide init --cmd cd powershell | Out-String) })
sets the alias of cd
to __zoxide_z
and alias of cdi
to __zoxide_zi
You can see that here:
The line used to be:
Invoke-Expression (& { (zoxide init powershell | Out-String) })
, so without the --cmd flag
The default behaviour was to set z
as __zoxide_z
and z
to __zoxide_zi
In general, you are right.
After the changes z
, zi
commands are no longer supported by default and have been replaced by cd
, cdi
Just know, that you can still use the cd
command with its original functionality
Hello @korneltlaczala
"Thanks for clearing up the doubt."
Hello Team,
After the latest changes, zoxide is not working find the snap below of error is anyone has faced the same issue Thanks in advance