This repo is where I save many of my personal PowerShell files. This includes personal PowerShell scripts, modules, and profiles, and other environment settings. Some Python files that are used to setup/modify my environment are also saved in this repo.
Symbolic links allow me to have files inside my repo that are also accessible outside of the repo. For example my PowerShell profile. This also allows me to have one PowerShell profile for both PowerShell Core (7.x) and PowerShell (5.x). To setup Symbolic links so that they work with get keep the base file inside the git repo and link that file out to the other locations.
Instructions on how to create symbolic
$userFolder = Resolve-Path "~"
$myDocs = [environment]::GetFolderPath("MyDocuments")
new-item `
-ItemType SymbolicLink `
-Path (Join-Path $myDocs WindowsPowerShell) `
-Name profile.ps1 `
-value (Join-Path $userFolder "programming\powershell\environment\powershell\profile\profile.ps1")
$userFolder = Resolve-Path "~"
$myDocs = [environment]::getFolderPath("MyDocuments")
new-item `
-ItemType SymbolicLink `
-Path (Join-Path $myDocs PowerShell) `
-Name profile.ps1 `
-value (Join-Path $userFolder "programming\powershell\environment\powershell\profile\profile.ps1")
I have created my own homebrew solution that I plan to keep using. However, if I ever want to switch back to Virtualenv Wrapper here is the info:
VirtualEnvWrapper