Add mkcd function to PowerShell

This commit is contained in:
Anthony Rose 2023-05-09 14:43:56 +01:00
parent 8254964906
commit c40db24b03

View file

@ -61,6 +61,14 @@ function ADUserInfo {
Get-ADUser -Properties $ADPropertiesGet -Identity $User | Select-Object -Property $ADPropertiesPrint Get-ADUser -Properties $ADPropertiesGet -Identity $User | Select-Object -Property $ADPropertiesPrint
} }
Function mkcd {
Param (
[Parameter(Mandatory=$true,Position=0)] [string]$Path
)
New-Item -ItemType Directory -Path $Path
Set-Location -Path $Path
}
Set-Alias -Name json -Value ConvertTo-Json Set-Alias -Name json -Value ConvertTo-Json
Set-PSReadlineOption -BellStyle None Set-PSReadlineOption -BellStyle None
Set-PSReadlineOption -EditMode Emacs Set-PSReadlineOption -EditMode Emacs