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: 4 months ago
JSON representation
PowerShell lookup for recent locations and commands
- Host: GitHub
- URL: https://github.com/cezarypiatek/pshistory
- Owner: cezarypiatek
- License: mit
- Created: 2020-12-10T22:52:08.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-12-08T21:08:16.000Z (over 3 years ago)
- Last Synced: 2025-01-17T05:43:44.396Z (6 months ago)
- Topics: command-line, commandline, console, powershell, terminal
- Language: PowerShell
- Homepage:
- Size: 10.7 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.
