Aliases hinzugefügt
This commit is contained in:
19
aliases.ps1
19
aliases.ps1
@@ -4,4 +4,21 @@ function edit {
|
||||
code .
|
||||
|
||||
}
|
||||
Set-Alias -name install -value "~\.winconfig\install.ps1"
|
||||
# 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 }
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
{
|
||||
"defaults":
|
||||
{
|
||||
"elevate": true
|
||||
"elevate": false
|
||||
},
|
||||
"list":
|
||||
[
|
||||
|
||||
Reference in New Issue
Block a user