Skip to content

Instantly share code, notes, and snippets.

@sharunkumar
Last active October 26, 2024 19:03
Show Gist options
  • Save sharunkumar/951c0e3a4edfccffea6953a6f05d73bc to your computer and use it in GitHub Desktop.
Save sharunkumar/951c0e3a4edfccffea6953a6f05d73bc to your computer and use it in GitHub Desktop.
Import existing powershell cd history into zoxide (Linux)
cat ~/.local/share/powershell/PSReadLine/ConsoleHost_history.txt | grep '^cd' | sed 's/^cd //' | sort | uniq | % { zoxide add $_ }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment