This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Windows Registry Editor Version 5.00 | |
| [HKEY_CLASSES_ROOT\Directory\Background\shell\cmd_here] | |
| @="Open cmd here" | |
| "Icon"="cmd.exe" | |
| [HKEY_CLASSES_ROOT\Directory\Background\shell\cmd_here\command] | |
| @="cmd.exe /s /k pushd \"%V\"" | |
| [HKEY_CLASSES_ROOT\Directory\shell\cmd_here] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function Test-IsAdmin { | |
| try { | |
| $identity = [Security.Principal.WindowsIdentity]::GetCurrent() | |
| $principal = New-Object Security.Principal.WindowsPrincipal -ArgumentList $identity | |
| return $principal.IsInRole( [Security.Principal.WindowsBuiltInRole]::Administrator ) | |
| } catch { | |
| throw "Failed to determine if the current user has elevated privileges. The error was: '{0}'." -f $_ | |
| } | |
| <# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [core] | |
| editor = "code --wait" | |
| [diff] | |
| tool = default-difftool | |
| [difftool "default-difftool"] | |
| cmd = "code --wait --diff $LOCAL $REMOTE" | |
| [merge] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function Remove-OldModules | |
| { | |
| Write-Prompt "------------------------------------------" -ForegroundColor Cyan | |
| Write-Prompt "Removing old versions of installed modules" -ForegroundColor Cyan | |
| Write-Prompt "------------------------------------------" -ForegroundColor Cyan | |
| $modules = Get-InstalledModule | |
| Write-Prompt "$($modules.count) module(s) found." -ForegroundColor Yellow | |
| Write-Prompt "" | |
| foreach ($module in $modules) |
OlderNewer