Add mkcd function to PowerShell
This commit is contained in:
parent
8254964906
commit
c40db24b03
1 changed files with 8 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue