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