pwsh
:powershell7.15; powershell
: powershellv1.0,不知道啥版本,就 win11 自带的 :
oh-my-posh
+posh-git
两个模块,启动速度 1000ms-1100ms$profile
内容全部注释掉,启动速度,启动速度 500mspwsh -noprofile
有明显停顿感(但感觉应该没 500ms 这么夸张了)powershell -noprofile
几乎没有延迟这个延迟太高了,不知道有什么优化方法没,stackoverflow上提到.net 框架升级,感觉不怎么靠谱,因为powershell -noprofile
这个指令基本没啥延迟,所以感觉应该是配置文件优化的问题,有 v 友懂如何优化吗
![]() |
1
ersic 306 天前 ![]() 我之前用 oh-my-posh+posh ,配置了一大堆东西,感觉是慢了,现在在用 https://github.com/starship/starship
|
![]() |
2
hope4tomorrow 306 天前
macos ,之前用 iterm2 + zsh ,用了 oh-my-zsh 和各种插件,启动 1s+,忍受不了,随即换成 wezterm, 目前丝滑到极致。。。
|
![]() |
3
Tumblr 306 天前
这让我想到了当年比拼 Windows 开机速度的时候,这个“我开机 10 秒”,那个“我开机 8 秒”,一定要争做那个最快的男人……
|
4
nightwitch 306 天前
没什么优化的,powershell 就是很慢。
如果对速度有要求建议自己写点 alias 就行了,主题之类的会很慢 |
![]() |
5
creanme 306 天前
我 pwshl 冷启动花了至少 6 秒。。。。真的离谱。再次启动就快多了,估计 500 多毫秒。
|
![]() |
8
tuutoo 306 天前
我现在也在用 oh-my-posh+posh 可能电脑配置也有点关系 同样配置单位电脑要 2000ms - 4000ms 不等,家里的 400ms 左右。
也是慢的不能忍受,看了下二楼这个好像不错,准备试一下。 |
![]() |
10
h404bi 306 天前
就是很慢,我的配置文件加载基本 1500ms 以上,习惯了。
|
![]() |
11
356693212 306 天前
Loading personal and system profiles took 1798ms. 你可以二分法测试。谁知道你有什么配置和插件啊。
|
![]() |
12
CokeMine 306 天前
pwsh -noprofile 有的时候能卡到好几十秒才能加载出来(有时好几十秒,有时几秒,有时很快,5.x 7.x 版本都这样)
加上 -noprofile 了肯定不是一些插件的问题 网上搜了一些 用什么 ngen.exe 什么的方法都无效 |
13
skinny 306 天前 ![]() 试试加两个环境变量然后重启:
POWERSHELL_TELEMETRY_OPTOUT=1 POWERSHELL_UPDATECHECK=Off 再慢就没有办法了。 |
15
duke807 306 天前
我想知道怎麼測試啓動速度,我的 xfce 桌面,ctrl + alt + t 快捷鍵打開 shell 窗口太快了,完全沒法測速度啊。。。
|
16
Lemeng 306 天前
习惯就好,也没啥大问题
|
![]() |
17
beetlerx 306 天前
一直用 msys2 + hyper ( https://hyper.is/) + oh-my-zsh
|
20
lelandsu 112 天前
是真的慢,希望谁有办法能这里回一句
|