diff options
| author | srdusr <trevorgray@srdusr.com> | 2024-05-27 18:20:52 +0200 |
|---|---|---|
| committer | srdusr <trevorgray@srdusr.com> | 2024-05-27 18:20:52 +0200 |
| commit | 780510ba4cf66a8dd733dd603fefca2a4ad22725 (patch) | |
| tree | 9ca255733e258205873f6279f95505536df14042 /.config/powershell/Microsoft.PowerShell_profile.ps1 | |
| parent | ccac1ba59822113300d83198a635292ebc8489aa (diff) | |
| download | dotfiles-780510ba4cf66a8dd733dd603fefca2a4ad22725.tar.gz dotfiles-780510ba4cf66a8dd733dd603fefca2a4ad22725.zip | |
Add alias for git bare dotfiles, ie. "$ config"
Diffstat (limited to '.config/powershell/Microsoft.PowerShell_profile.ps1')
| -rw-r--r-- | .config/powershell/Microsoft.PowerShell_profile.ps1 | 4 |
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)) { |
