Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/cezarypiatek/pshistory

PowerShell lookup for recent locations and commands
https://github.com/cezarypiatek/pshistory

command-line commandline console powershell terminal

Last synced: 29 days ago
JSON representation

PowerShell lookup for recent locations and commands

Awesome Lists containing this project

README

        

# PSHistory
PowerShell lookup for recent locations and commands

## How to use it

1. Install [PSHistory](https://www.powershellgallery.com/packages/PSHistory/) module from `PSGallery`

```ps
Install-Module PSHistory
```

2. Define the following aliases in your `$PROFILE` file

```ps
Set-Alias -Name cd -Value Set-HistoricalLocation -Option AllScope
Set-Alias -Name hd -Value Show-HistoricalLocation -Option AllScope
```

3. Reload your profile

```ps
. $PROFILE
```

## How to use it

When you change directories with `cd` command, `PSHistory` tracks your locations. `hd` command allows to switch to one of the recent directories.

![HiHjfS7LE5](https://user-images.githubusercontent.com/7759991/145283243-7acf3b3c-858c-403d-9cd9-89aed3f663f5.gif)