shlu's note

更新PowerShell

添加命令别名

注意不是PowerShell里的Alias别名

New-Item $profile -force -itemtype file
function 别名 { 需要替代的命令 }

eg.

remove-item alias:history # 可选,删除默认的别名,否则会先调用默认的
function history { cat C:\Users\xxx\AppData\Roaming\Microsoft\Windows\PowerShell\PSReadLine\ConsoleHost_history.txt }

参考

声明:转载请注明出处,原文地址:shlu's note