File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -184,4 +184,19 @@ Add-Alias envs 'Get-ChildItem Env:'
184
184
Add-Alias profiles ' Get-PSProfile {$_.exists -eq "True"} | Format-List'
185
185
186
186
Add-Alias HKLM: ' Set-Location HKLM:'
187
- Add-Alias HKCU: ' Set-Location HKCU:'
187
+ Add-Alias HKCU: ' Set-Location HKCU:'
188
+
189
+
190
+ # ----------------------------------------------------------------------------------- #
191
+ # Dotfiles related
192
+ ${function: dotu} = {
193
+ $currentLocation = " $ ( Get-Location ) "
194
+ Write-Host " Updating windots..."
195
+ Set-Location " $env: DOTFILES "
196
+ git stash | Out-Null
197
+ git pull | Out-Null
198
+ git stash pop | Out-Null
199
+ Start-Process pwsh - WindowStyle Hidden - ArgumentList " ./Setup.ps1"
200
+ Set-Location $currentLocation
201
+ . $PROFILE.CurrentUserAllHosts
202
+ }
You can’t perform that action at this time.
0 commit comments