[feature] pip.ini
This commit is contained in:
parent
ddec4019e4
commit
8ce58b61a1
|
@ -1,5 +1,4 @@
|
||||||
# execute this first
|
# execute this first: Set-ExecutionPolicy RemoteSigned
|
||||||
Set-ExecutionPolicy RemoteSigned
|
|
||||||
|
|
||||||
if (!([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)) {
|
if (!([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)) {
|
||||||
Start-Process PowerShell -Verb RunAs "-NoProfile -ExecutionPolicy Bypass -Command `"cd '$pwd'; & '$PSCommandPath';`"";
|
Start-Process PowerShell -Verb RunAs "-NoProfile -ExecutionPolicy Bypass -Command `"cd '$pwd'; & '$PSCommandPath';`"";
|
||||||
|
@ -11,11 +10,9 @@ $dotfiles=(Get-Item $PSScriptRoot).Parent.FullName
|
||||||
New-Item -ItemType SymbolicLink -Target $dotfiles\win\profile.ps1 -Path $profile -Force
|
New-Item -ItemType SymbolicLink -Target $dotfiles\win\profile.ps1 -Path $profile -Force
|
||||||
New-Item -ItemType SymbolicLink -Target $dotfiles\config\mpv\mpv.conf -Path $Env:APPDATA\mpv\mpv.conf -Force
|
New-Item -ItemType SymbolicLink -Target $dotfiles\config\mpv\mpv.conf -Path $Env:APPDATA\mpv\mpv.conf -Force
|
||||||
New-Item -ItemType SymbolicLink -Target $dotfiles\config\mpv\scripts -Path $Env:APPDATA\mpv\scripts -Force
|
New-Item -ItemType SymbolicLink -Target $dotfiles\config\mpv\scripts -Path $Env:APPDATA\mpv\scripts -Force
|
||||||
|
Remove-Item -Force -Recurse $Env:APPDATA\pip
|
||||||
$sshconf="D:\Nextcloud\klesh\config\ssh\config"
|
New-Item -ItemType Directory -Path $Env:APPDATA\pip
|
||||||
if (Test-Path $sshconf -PathType Leaf) {
|
New-Item -ItemType SymbolicLink -Target $dotfiles\pip\pip.conf -Path $Env:APPDATA\pip\pip.ini -Force
|
||||||
New-Item -ItemType SymbolicLink -Target $sshconf -Path $home\.ssh\config -Force
|
|
||||||
}
|
|
||||||
|
|
||||||
# fix Shift key toggling Cn/En fro MS wubi
|
# fix Shift key toggling Cn/En fro MS wubi
|
||||||
if (-not (Get-ScheduledTask -TaskName "Wubi No Shift")) {
|
if (-not (Get-ScheduledTask -TaskName "Wubi No Shift")) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user