Inspired by cd-bookmark of zsh plugin.
https://github.com/mollifier/cd-bookmark
You can install from PowerShell Gallery. posh-cdbookmark
Install-Module -Name posh-cdbookmark
$ Add-Cdbookmark -Name foo -Path .
$ cdb foo
$ Remove-CdBookmark foo
$ Get-CdBookmark
Name Value
---- -----
kyrtblog C:\home\takekazu\Dropbox\kyrt\site
tech.c C:\home\takekazu\Dropbox\project\tech.c
psdirenv C:\ws\posh\psdirenv
cdb C:\GitHub\takekazuomi\Cdbookmark
Bookmark is stored in $HOME/.cdbookmark.
$ cat C:\Users\takekazu\.cdbookmark
{
"tech.c": "C:\\home\\takekazu\\Dropbox\\project\\tech.c",
"cdb": "C:\\GitHub\\takekazuomi\\Cdbookmark",
"kyrtblog": "C:\\home\\takekazu\\Dropbox\\kyrt\\site"
}