From: Edward Delaporte Date: Wed, 10 Feb 2021 16:50:05 +0000 (-0600) Subject: Changer directory if not launched somewhere specific. X-Git-Url: https://us-delaporte.pagekite.me/gitweb/dotfiles.git/commitdiff_plain/244caafe287ab03ca292ab430cab7b04ed61aae3?ds=sidebyside Changer directory if not launched somewhere specific. --- 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 +}