






















CUPAIR · 2022 年 4 月 6 日 · 10086 次点击
这是一个创建于 1531 天前的主题,其中的信息可能已经有所发展或是发生改变。
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 友懂如何优化吗
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 就是很慢。 |
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 版本都这样) |
13 skinny 2022 年 4 月 6 日试试加两个环境变量然后重启: 再慢就没有办法了。 |
15 duke807 2022 年 4 月 6 日我想知道怎麼測試啓動速度,我的 xfce 桌面,ctrl + alt + t 快捷鍵打開 shell 窗口太快了,完全沒法測速度啊。。。 |
16 Lemeng 2022 年 4 月 6 日习惯就好,也没啥大问题 |
20 lelandsu 2022 年 10 月 17 日是真的慢,希望谁有办法能这里回一句 |
21 CUPAIR 2022 年 10 月 17 日@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 ,最后躺平了 |
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。