From 244caafe287ab03ca292ab430cab7b04ed61aae3 Mon Sep 17 00:00:00 2001 From: Edward Delaporte Date: Wed, 10 Feb 2021 10:50:05 -0600 Subject: [PATCH] Changer directory if not launched somewhere specific. --- Microsoft.PowerShell_profile.ps1 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Microsoft.PowerShell_profile.ps1 b/Microsoft.PowerShell_profile.ps1 index 8582fbc..3f55ac0 100644 --- a/Microsoft.PowerShell_profile.ps1 +++ b/Microsoft.PowerShell_profile.ps1 @@ -55,5 +55,7 @@ function Enable-PoshGit { New-Alias pg Enable-PoshGit Write-Host "+ Type 'pg' to enable PoshGit" -# cd c:\src -# + +if((Get-Location).Path -eq $HOME){ + cd c:\src +} -- 2.47.3