powershell配置

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
oh-my-posh init pwsh --config 'C:\Users\ccadmin\AppData\Local\Programs\oh-my-posh\themes\ys.omp.json' | Invoke-Expression
New-Alias -Name ifconfig -Value ipconfig
function sqlmap{
python D:\tools\sqlmap\sqlmap.py @Args
}
function get_ip{
curl https://www.taobao.com/help/getip.php
}

# Import the Chocolatey Profile that contains the necessary code to enable
# tab-completions to function for `choco`.
# Be aware that if you are missing these lines from your profile, tab completion
# for `choco` will not function.
# See https://ch0.co/tab-completion for details.
$ChocolateyProfile = "$env:ChocolateyInstall\helpers\chocolateyProfile.psm1"
if (Test-Path($ChocolateyProfile)) {
Import-Module "$ChocolateyProfile"
}
Set-PSReadlineKeyHandler -Key Tab -Function MenuComplete

powershell配置
https://blog.njcit.me/2022/12/27/杂项/powershell配置/
作者
ccadmin
发布于
2022年12月27日
许可协议