[+] Setup script

This commit is contained in:
Hykilpikonna
2021-12-22 22:59:51 -05:00
parent 8d07c27ed6
commit 252d68e22a
+11
View File
@@ -3,6 +3,17 @@ set-alias ll ls
function su { powershell Start-Process powershell -Verb runAs } function su { powershell Start-Process powershell -Verb runAs }
function pwdd { $("$PWD".replace($HOME, '~')) } function pwdd { $("$PWD".replace($HOME, '~')) }
# ln -s
function ln-s ($target, $link) {
New-Item -Path $link -ItemType SymbolicLink -Value $target
}
function setup-powershell-profile {
$docs = [Environment]::GetFolderPath("MyDocuments")
ln-s "~\zshrc\powershell.ps1" "$docs\WindowsPowerShell\Microsoft.PowerShell_profile.ps1"
ln-s "~\zshrc\powershell.ps1" "$docs\PowerShell\Microsoft.PowerShell_profile.ps1"
}
# Paths # Paths
$env:path = "$env:path" + $env:path = "$env:path" +
";C:\users\me\appdata\roaming\python\python39\scripts" + ";C:\users\me\appdata\roaming\python\python39\scripts" +