aboutsummaryrefslogtreecommitdiff
path: root/.config/powershell/Microsoft.PowerShell_profile.ps1
diff options
context:
space:
mode:
Diffstat (limited to '.config/powershell/Microsoft.PowerShell_profile.ps1')
-rw-r--r--.config/powershell/Microsoft.PowerShell_profile.ps15
1 files changed, 3 insertions, 2 deletions
diff --git a/.config/powershell/Microsoft.PowerShell_profile.ps1 b/.config/powershell/Microsoft.PowerShell_profile.ps1
index a48a3fb..0f13122 100644
--- a/.config/powershell/Microsoft.PowerShell_profile.ps1
+++ b/.config/powershell/Microsoft.PowerShell_profile.ps1
@@ -6,8 +6,9 @@ Import-Module posh-git
# Set-PoshPrompt -Theme ~/.omp/themes/tokyonight.omp.yaml
oh-my-posh init pwsh --config ~/.omp/themes/tokyonight.omp.yaml | Invoke-Expression
-function config {
- git --git-dir=$HOME/.cfg --work-tree=$HOME $args
+# Dotfiles special git command
+function global:config {
+ git --git-dir=$env:USERPROFILE/.cfg --work-tree=$env:USERPROFILE $args
}
# Chocolatey profile