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