Skip to content

PavelStsefanovich/LocationStack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 

Repository files navigation

LocationStack

This module is a replacement for PowerShell built-in Push-Location/Pop-Location cmdlets with enhanced functionality:

  • ability to add multiple locations (paths) to the stack ([hashtable]) with custom ID.
  • ID can be used later to switch dirctly to the target location.
  • ability to quickly switch between last two locations with single command.
  • persistent location table (location record will remain after 'popping' and can be used again).
  • ability to export/import location stack hashtable into/from a file with custom name to maintain multiple stack tables.

Installation

Powershell v.5.0+

Powershell gallery: https://www.powershellgallery.com/packages/LocationStack

  1. From PowerShell console run command:
    >_ Install-Module -Name LocationStack
Powershell v.2.0+
  1. Download this repo and extract.
  2. From PowerShell console run command:
    >_ Import-Module <extraction_dir>/LocationStack/LocationStack.psm1

Notes

Open-source and free of charge. Feel free to modify. I've written it for my own use, and it proved very helpful. Hoping that someone else will find it useful. Reference to original repo is greatly appreciated.

About

Replacement for PowerShell built-in Push-Location/Pop-Location cmdlets

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published