From 780510ba4cf66a8dd733dd603fefca2a4ad22725 Mon Sep 17 00:00:00 2001 From: srdusr Date: Mon, 27 May 2024 18:20:52 +0200 Subject: Add alias for git bare dotfiles, ie. "$ config" --- .config/powershell/Microsoft.PowerShell_profile.ps1 | 4 ++++ 1 file changed, 4 insertions(+) (limited to '.config/powershell/Microsoft.PowerShell_profile.ps1') diff --git a/.config/powershell/Microsoft.PowerShell_profile.ps1 b/.config/powershell/Microsoft.PowerShell_profile.ps1 index cebfeb1..a48a3fb 100644 --- a/.config/powershell/Microsoft.PowerShell_profile.ps1 +++ b/.config/powershell/Microsoft.PowerShell_profile.ps1 @@ -6,6 +6,10 @@ 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 +} + # Chocolatey profile $ChocolateyProfile = "$env:ChocolateyInstall\helpers\chocolateyProfile.psm1" if (Test-Path($ChocolateyProfile)) { -- cgit v1.2.3