From 1002ffb8b2c7aa97d2a42d2e8cb2aa56a1fdecc3 Mon Sep 17 00:00:00 2001 From: srdusr Date: Tue, 28 May 2024 01:25:48 +0200 Subject: Add dotfiles special git command "config" alias --- .config/powershell/Microsoft.PowerShell_profile.ps1 | 5 +++-- 1 file 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 -- cgit v1.2.3