Module provides functions to manage and use folder bookmarks in PowerShell.
The set bookmarks are automatically stored in a file .folderBM.clixml
in the user's profile path (normally C:\Users\<username>\Documents\WindowsPowerShell
).
The module is provided under the Apache License Version 2.0. See http://www.apache.org/licenses/ for more details.
v1.0.4 - Implemented dynamic parameter validation for Use-FolderBookmark and Remove-FolderBookmark
v1.0.3 - Changed/Added some aliases, added Export-ModuleMember for PS4 compatibility
v1.0.2 - Details for publishing
v1.0.1 - Implemented support for -WhatIf and -Confirm in Set-FolderBookmark and Remove-FolderBookmark
v1.0.0 - Initial version
Please simply execute Install-Module -Name FolderBookmarks
in an elevated PowerShell session to install the most current version directly from https://powershellgallery.com.
The specified path is stored to a bookmark that can be used with Get-FolderBookmark
.
The list of bookmarks is exported to the user profile using Export-FolderBookmark
.
Alias(es): setbm
, bookmark
Retrieves the folder from a named bookmark and sets current location to the folder.
Alias(es): goto
, gobm
, go
Removes the bookmark with specified name(s) from the bookmark-list.
The list of bookmarks is exported to the user profile using Export-FolderBookmark
.
Alias(es): rembm
, unbookmark
Lists the folder bookmarks
Alias(es): getbm
, listbm
Exports the folder bookmarks to the user's profile folder with the name .folderBM.clixml
Alias(es): expbm
Imports the folder bookmarks from the user's profile file with the name .folderBM.clixml. Existing bookmarks in memory will be overwritten.
To automatically import the bookmarks into each user session, it's advised to add the command to the users profile script.
Alias(es): impbm
The bookmarks are stored to the user's profile path into a file with name .folderBM.clixml
.
To load the bookmarks automatically on startup of a new session, I suggest to add the Import-FolderBookmark
call in your $profile
(normally C:\Users\detlefs\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1
).
If you need to empty the list of bookmarks completely, you can easily do this by piping the
list of bookmarks to the Remove-FolderBookmark
function.
Example: Get-FolderBookmark | Remove-FolderBookmark -WhatIf
(or: getbm | rembm
)