Last active
October 26, 2024 19:03
-
-
Save sharunkumar/951c0e3a4edfccffea6953a6f05d73bc to your computer and use it in GitHub Desktop.
Import existing powershell cd history into zoxide (Linux)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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