powershell
PowerShell
安装
powershell
Install-Module posh-git -Scope CurrentUser
powershell
Install-Module git-aliases -Scope CurrentUser -AllowClobber
powershell
Install-Module z -AllowClobber
powershell
winget install --id Starship.Starship
powershell
winget install gerardog.gsudo
使用说明
powershell
Set-PSReadlineKeyHandler -Key Tab -Function MenuComplete
powershell
Import-Module posh-git
Import-Module git-aliases -DisableNameChecking
Import-Module z
powershell
Invoke-Expression (&starship init powershell)
powershell
Set-Alias -Name la -Value Get-ChildItem
powershell
function i {
param (
[string]$DirectoryName
)
Set-Location -Path "~\i\$DirectoryName"
}
powershell
Remove-Item Alias:ni -Force -ErrorAction Ignore
powershell
function nio {
ni --prefer-offline
}
function s {
nr start
}
function d {
nr dev
}
function b {
nr build
}
function bw {
nr build --watch
}
function t {
nr test
}
function tu {
nr test -u
}
function tw {
nr test --watch
}
function w {
nr watch
}
function p {
nr play
}
function c {
nr typecheck
}
function lint {
nr lint
}
function lintf {
nr lint --fix
}
function release {
nr release
}
function re {
nr release
}