aboutsummaryrefslogtreecommitdiff
path: root/.config/powershell
diff options
context:
space:
mode:
authorsrdusr <trevorgray@srdusr.com>2024-05-28 01:25:48 +0200
committersrdusr <trevorgray@srdusr.com>2024-05-28 01:25:48 +0200
commit1002ffb8b2c7aa97d2a42d2e8cb2aa56a1fdecc3 (patch)
tree5563eb51a0eb8376e513eefab3e77aaadf4452d6 /.config/powershell
parent780510ba4cf66a8dd733dd603fefca2a4ad22725 (diff)
downloaddotfiles-1002ffb8b2c7aa97d2a42d2e8cb2aa56a1fdecc3.tar.gz
dotfiles-1002ffb8b2c7aa97d2a42d2e8cb2aa56a1fdecc3.zip
Add dotfiles special git command "config" alias
Diffstat (limited to '.config/powershell')
-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