Add config from linux conf
This commit is contained in:
parent
174d913f73
commit
6ba1596291
124 changed files with 3913 additions and 2 deletions
14
run_once_prepare_windows.ps1
Normal file
14
run_once_prepare_windows.ps1
Normal file
|
@ -0,0 +1,14 @@
|
|||
# Self-elevate the script if required
|
||||
if (-Not ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] 'Administrator')) {
|
||||
$CommandLine = "-NoExit -File `"" + $MyInvocation.MyCommand.Path + "`" " + $MyInvocation.UnboundArguments
|
||||
Start-Process -FilePath PowerShell.exe -Verb Runas -ArgumentList $CommandLine
|
||||
Exit
|
||||
}
|
||||
|
||||
$config_folder = "$env:USERPROFILE\.config\gitui"
|
||||
$symlink_folder = "$env:APPDATA\gitui"
|
||||
if (Test-Path $symlink_folder) {
|
||||
Remove-Item -Recurse $symlink_folder
|
||||
}
|
||||
|
||||
New-Item -Path $symlink_folder -ItemType SymbolicLink -Value $config_folder
|
Loading…
Add table
Add a link
Reference in a new issue