aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsrdusr <trevorgray@srdusr.com>2024-05-27 18:20:52 +0200
committersrdusr <trevorgray@srdusr.com>2024-05-27 18:20:52 +0200
commit780510ba4cf66a8dd733dd603fefca2a4ad22725 (patch)
tree9ca255733e258205873f6279f95505536df14042
parentccac1ba59822113300d83198a635292ebc8489aa (diff)
downloaddotfiles-780510ba4cf66a8dd733dd603fefca2a4ad22725.tar.gz
dotfiles-780510ba4cf66a8dd733dd603fefca2a4ad22725.zip
Add alias for git bare dotfiles, ie. "$ config"
-rw-r--r--.config/powershell/Microsoft.PowerShell_profile.ps14
1 files changed, 4 insertions, 0 deletions
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)) {