GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - powercode/CDPath: PowerShell module to make navigating your system a breeze

BranchesTags
Open more actions menu

Latest commit

 

History

14 Commits
14 Commits

Folders and files

NameName
Last commit message
Last commit date
.vscode
.vscode
 
 
docs
docs
 
 
src
src
 
 
test
test
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
build.ps1
build.ps1
 
 
build.settings.ps1
build.settings.ps1
 
 

Repository files navigation

CDPath

PowerShell module to make navigating your system a breeze.

The main function of the module is Set-CDPathLocation (below referenced by 'cd') and supports the following:

  • Go to previous location without pushd/popd (cd -)
  • Go upwards multiple levels (cd ....)
  • Go to a directory in a predefined path
  • Integration with TabExpansion++

Usage

Assuming you've installed the module somewhere in your module path, just import the module in your profile, e.g.:

Import-Module CDPath

To setup the CDPath, i.e. the parent directories of the directories you most often navigate to, call

# a user who has github projects and a directory where corporate source code is stored
# may set up the path like this 
Set-CDPath -Path ~\Documents\GitHub,d:\corpsrc,~\documents

The CDPath is persisted at ~/Documents/WindowsPowerShell/cdpath.txt

Imagine the following directory structure

~/Documents/
	GitHub
		PSReadLine
		TabExpansionPlusPlus
		CDPath
	WindowsPowerShell
		ArgumentCompleters
		Modules
D:\CorpSrc
	PSApi
	ToolingApi
	Frontend
	Backend

Navigation can then be done like this:

# go to PSReadline
PS> cd psr

 go to ~\Documents\WindowsPowerShell\Modules
cd win mod

# go to D:\CorpSrc\ToolingApi
cd too

# go to ~\Documents\GitHub\TabExpansionPlusPlus
cd tab
# go up three levels
cd ....
# go back to previous directory 
cd -

About

PowerShell module to make navigating your system a breeze

Resources

Readme
MIT license
Activity

Stars

14 stars

Watchers

3 watching

Forks

2 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.