25 lines
669 B
PowerShell
25 lines
669 B
PowerShell
# Öffnet die winconfig in VSC
|
|
function edit {
|
|
Set-Location ~/.winconfig/
|
|
code .
|
|
|
|
}
|
|
# Speicherplatz anzeigen lassen
|
|
function space {
|
|
Get-CimInstance -ClassName Win32_LogicalDisk | Select-Object -Property DeviceID,@{'Name' = 'FreeSpace (GB)'; Expression= { [int]($_.FreeSpace / 1GB) }}
|
|
}
|
|
# Powershell als Admin neu starten
|
|
function elevate {
|
|
Start-Process powershell -Verb runAs -ArgumentList $arguments
|
|
|
|
}
|
|
|
|
# Startet das install Script
|
|
Set-Alias -name install -value "~\.winconfig\install.ps1"
|
|
|
|
# Diverses
|
|
${function:cdl} = { Set-Location ~\Downloads }
|
|
Set-Alias trash Clear-RecycleBin
|
|
function touch($file) { "" | Out-File $file -Encoding ASCII }
|
|
|