From a5992f08d6f2d108a712a237b8f3060c68c7f276 Mon Sep 17 00:00:00 2001 From: Isaac Shoebottom Date: Fri, 2 Feb 2024 22:40:00 -0400 Subject: [PATCH] Update powershell shit again --- Documents/PowerShell/Microsoft.PowerShell_profile.ps1 | 6 +++--- Documents/PowerShell/aliases.ps1 | 8 +++++++- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/Documents/PowerShell/Microsoft.PowerShell_profile.ps1 b/Documents/PowerShell/Microsoft.PowerShell_profile.ps1 index 3f76851..9c65cfb 100644 --- a/Documents/PowerShell/Microsoft.PowerShell_profile.ps1 +++ b/Documents/PowerShell/Microsoft.PowerShell_profile.ps1 @@ -1,8 +1,8 @@ # Sync apps with scoop -&~/Documents/PowerShell/verify-state.ps1 +. ~/Documents/PowerShell/verify-state.ps1 # Shell completion -&~/Documents/PowerShell/completions.ps1 +. ~/Documents/PowerShell/completions.ps1 # Aliases -&~/Documents/PowerShell/aliases.ps1 \ No newline at end of file +. ~/Documents/PowerShell/aliases.ps1 \ No newline at end of file diff --git a/Documents/PowerShell/aliases.ps1 b/Documents/PowerShell/aliases.ps1 index ceb4b6d..f9c4cce 100644 --- a/Documents/PowerShell/aliases.ps1 +++ b/Documents/PowerShell/aliases.ps1 @@ -2,4 +2,10 @@ if (Test-Path alias:pwd) { Remove-Alias -Name pwd } - Function pwd {(Get-Location).Path} \ No newline at end of file + Function pwd {(Get-Location).Path} + + # Change to dotfiles directory + if (Test-Path alias:dotfolder) { + Remove-Alias -Name dotfolder + } + function dotfolder {Set-Location ~/.local/share/chezmoi} \ No newline at end of file