Skip to content

crrrowz/WindowsPowerShell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PowerShell Profile — Log Keeper

🇸🇦 Arabic🇬🇧 English

PowerShell Profile — Log Keeper is an intelligent Profile.ps1 script that automatically creates a separate PowerShell history file for each directory you work in.
Whenever you enter a new folder, it generates a dedicated PowerShellHistory.txt file that stores all executed commands and their outputs for that specific path.
This allows you to easily review, search, and recover commands specific to each project.


⚙️ Project Idea

The script customises Microsoft.PowerShell_profile.ps1 to dynamically set a new PowerShell history file path based on the current working directory.
It also uses the PowerShell.OnLocationChanged event (available in PowerShell 7+) to automatically update the log path whenever you change directories.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published