pwsh:powershell7.15; powershell: powershellv1.0,不知道啥版本,就 win11 自带的 :
- 配置
oh-my-posh+posh-git两个模块,启动速度 1000ms-1100ms - 把
$profile内容全部注释掉,启动速度,启动速度 500ms pwsh -noprofile有明显停顿感(但感觉应该没 500ms 这么夸张了)
powershell -noprofile几乎没有延迟 这个延迟太高了,不知道有什么优化方法没,stackoverflow上提到.net 框架升级,感觉不怎么靠谱,因为powershell -noprofile这个指令基本没啥延迟,所以感觉应该是配置文件优化的问题,有 v 友懂如何优化吗
