Aliases hinzugefügt

This commit is contained in:
2022-12-22 20:10:22 +01:00
parent 3a56805335
commit 6398c1dabe
2 changed files with 19 additions and 2 deletions

View File

@@ -4,4 +4,21 @@ function edit {
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 }

View File

@@ -36,7 +36,7 @@
{
"defaults":
{
"elevate": true
"elevate": false
},
"list":
[