惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

C
CXSECURITY Database RSS Feed - CXSecurity.com
P
Proofpoint News Feed
Attack and Defense Labs
Attack and Defense Labs
Security Archives - TechRepublic
Security Archives - TechRepublic
Engineering at Meta
Engineering at Meta
WordPress大学
WordPress大学
H
Hackread – Cybersecurity News, Data Breaches, AI and More
MyScale Blog
MyScale Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
F
Full Disclosure
云风的 BLOG
云风的 BLOG
爱范儿
爱范儿
V2EX - 技术
V2EX - 技术
B
Blog
Hacker News - Newest:
Hacker News - Newest: "LLM"
M
MIT News - Artificial intelligence
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
W
WeLiveSecurity
Stack Overflow Blog
Stack Overflow Blog
TaoSecurity Blog
TaoSecurity Blog
T
Threatpost
小众软件
小众软件
T
The Blog of Author Tim Ferriss
Google Online Security Blog
Google Online Security Blog
MongoDB | Blog
MongoDB | Blog
T
Tenable Blog
P
Privacy International News Feed
S
Security @ Cisco Blogs
H
Heimdal Security Blog
大猫的无限游戏
大猫的无限游戏
B
Blog RSS Feed
H
Help Net Security
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
C
Cisco Blogs
酷 壳 – CoolShell
酷 壳 – CoolShell
P
Proofpoint News Feed
D
Darknet – Hacking Tools, Hacker News & Cyber Security
有赞技术团队
有赞技术团队
Application and Cybersecurity Blog
Application and Cybersecurity Blog
O
OpenAI News
Security Latest
Security Latest
S
Securelist
Cyberwarzone
Cyberwarzone
D
Docker
S
Schneier on Security
V
Vulnerabilities – Threatpost
The GitHub Blog
The GitHub Blog
P
Privacy & Cybersecurity Law Blog
T
Tailwind CSS Blog
Apple Machine Learning Research
Apple Machine Learning Research

PowerShell

求助在 Windows 桌面运行某个程序的多个实例并在整个穿够屏幕布满的 powershell 脚本, GPT 生成的也无法平铺位置随机的。 - V2EX 是我孤陋寡闻了吗? powershell 里面其实支持顺斜杠, tab 补全也能改成顺斜杠 - V2EX 求助:如何阻止 Powershell 生成 tmp 文件 请教 win11 powershell 设置别名的问题 - V2EX 如何确定 powershell 在终端输出的信息是 stdout 还是 stderr? - V2EX ps1 文件如何双击以管理员身份运行 - V2EX V2EX ps 无法显示 bash 命令的完整参数,是 bug 吗? - V2EX powershell setx 变量后无法自身得到变量值 - V2EX 请教, powershell 脚本中使用中文,脚本文本存储的是 utf-8,运行后中文就是乱码。 - V2EX oh-my-posh 导致 powershell 启动缓慢 - V2EX powershell 管道问题 - V2EX 如何在打开 powershell 脚本的时候, cd 到脚本所在目录 - V2EX 如何让 powershell 输出的 txt 日志为 unix lf 格式 - V2EX 这个 powershell "比对”命令能优化吗? - V2EX powershell 运行 ps 文件的时候,如何支持带空格的路径 - V2EX cmd 输出日志的时候,如何不写入重复日志 - V2EX 请教-关于 PowerShell 的使用场景问题——竞赛,编程挑战,运维需求在哪里找 - V2EX Windows 运行 ffmpeg 批量脚本的时候,如何在不中断的情况下限制 CPU 使用率 - V2EX cmd 控制台显示输出日志过滤 - V2EX powershell7, 执行速度和自动补全速度都慢的令我抓狂 - V2EX 请教一下.ps1 运行时如何让 powerShell 同时显示所运行命令的内容 - V2EX 有什么不错的 powershell 书籍吗? - V2EX PowerShell 是否可以实现类似 expect 的功能? - V2EX 现在 PowerShell 是不是没有什么用? - V2EX PowerShell 竟然强悍如斯! - V2EX 请问如何使用 powershell 禁用/启用设备? - V2EX 逐浪 CMSv8.2 发布-集成 Node 与 Vue 脚手架和 PowerShell 支持的新一代网站管理系统 Powershell 的管道兼容性 powershell 的独门秘技之气运“丹田” powershell 的 tab 参数补全的,两个不同方式详解。 - V2EX 在 PowerShell 中好好说话 在 PowerShell 中使用 fish-style 自动补全提示 - V2EX PowerShell 与 Windows Terminal 增强配置 - V2EX 怎么把一个脚本方法注册为系统的环境变量? - V2EX !微软又放鸽子了! - V2EX 分享 powershell ssh to Linux 脚本。 PowerShell Core 7.0 RC 已经发布 powershell 一个很诡异的问题 - V2EX powershell 的 ntp 校时脚本,光棍节秒杀专用! PowerShell 如何强行覆盖一个文件 - V2EX 如何使用命令行或 PowerShell 删除一个已经安装好的证书 PowerShell 如何导入已有的 SSL 证书 - V2EX PowerShell 如何定义文件夹的权限 - V2EX 推荐一个 github 上的 PowerShell 项目 - V2EX Out-GridView 在 PowerShell Core 中回归了 - V2EX powershell 6, 7 的新特性。 - V2EX 新出炉的 ssh-copy-id6.ps1,是新版 vscode 的最佳拍档 - V2EX 把那 5000 多万条企业数据放到 SQLite 数据库里
PowerShell 启动慢 - V2EX
CUPAIR · 2022-04-06 · via PowerShell

CUPAIR

 

CUPAIR · 2022 年 4 月 6 日 · 10086 次点击

这是一个创建于 1531 天前的主题,其中的信息可能已经有所发展或是发生改变。

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 友懂如何优化吗

hope4tomorrow

2

hope4tomorrow      2022 年 4 月 6 日

macos ,之前用 iterm2 + zsh ,用了 oh-my-zsh 和各种插件,启动 1s+,忍受不了,随即换成 wezterm, 目前丝滑到极致。。。

Tumblr

3

Tumblr      2022 年 4 月 6 日

这让我想到了当年比拼 Windows 开机速度的时候,这个“我开机 10 秒”,那个“我开机 8 秒”,一定要争做那个最快的男人……

nightwitch

4

nightwitch      2022 年 4 月 6 日

没什么优化的,powershell 就是很慢。
如果对速度有要求建议自己写点 alias 就行了,主题之类的会很慢

creanme

5

creanme      2022 年 4 月 6 日

我 pwshl 冷启动花了至少 6 秒。。。。真的离谱。再次启动就快多了,估计 500 多毫秒。

ncepuzs

6

ncepuzs      2022 年 4 月 6 日

@ersic 同样是从 oh my posh 转向 starship prompt

CUPAIR

7

CUPAIR      2022 年 4 月 6 日

@ersic 换了一下,启动速度 700-800ms ,感觉延迟还是高,但 starship 默认的主题挺简洁的,好看

tuutoo

8

tuutoo      2022 年 4 月 6 日

我现在也在用 oh-my-posh+posh 可能电脑配置也有点关系 同样配置单位电脑要 2000ms - 4000ms 不等,家里的 400ms 左右。
也是慢的不能忍受,看了下二楼这个好像不错,准备试一下。

ersic

9

ersic      2022 年 4 月 6 日

@CUPAIR 我大概也是这个延迟,感觉没法再优化了。

h404bi

10

h404bi      2022 年 4 月 6 日

就是很慢,我的配置文件加载基本 1500ms 以上,习惯了。

356693212

11

356693212      2022 年 4 月 6 日

Loading personal and system profiles took 1798ms. 你可以二分法测试。谁知道你有什么配置和插件啊。

CokeMine

12

CokeMine      2022 年 4 月 6 日

pwsh -noprofile 有的时候能卡到好几十秒才能加载出来(有时好几十秒,有时几秒,有时很快,5.x 7.x 版本都这样)
加上 -noprofile 了肯定不是一些插件的问题
网上搜了一些 用什么 ngen.exe 什么的方法都无效

skinny

13

skinny      2022 年 4 月 6 日   ❤️ 3

试试加两个环境变量然后重启:
POWERSHELL_TELEMETRY_OPTOUT=1
POWERSHELL_UPDATECHECK=Off

再慢就没有办法了。

ecoo

14

ecoo      2022 年 4 月 6 日

@ncepuzs #6 我刚刚也换了,速度虽然差不多,但是真好看

duke807

15

duke807      2022 年 4 月 6 日

我想知道怎麼測試啓動速度,我的 xfce 桌面,ctrl + alt + t 快捷鍵打開 shell 窗口太快了,完全沒法測速度啊。。。

Lemeng

16

Lemeng      2022 年 4 月 6 日

习惯就好,也没啥大问题

CUPAIR

18

CUPAIR      2022 年 4 月 7 日

@skinny 速度没啥改观,这个去掉烦人的更新提示倒是很赞

skinny

19

skinny      2022 年 4 月 7 日

@CUPAIR 这个更新检查因为一些网络问题会严重拖慢启动速度。因为一些中文编码问题退回 5.1 了,目前还挺快的,能忍受的范围。

lelandsu

20

lelandsu      2022 年 10 月 17 日

是真的慢,希望谁有办法能这里回一句

CUPAIR

21

CUPAIR      2022 年 10 月 17 日

@lelandsu 如果装了 conda ,conda init powershell 后大概会拖慢一秒左右启动时间,可以在你 powershell 的`$profile` 同级目录下的 `profile.ps1`里注释掉启动 conda 那个语句,然后自己设个 alias ,用 conda 时手动激活

kawaiidora

22

kawaiidora      2023 年 11 月 22 日

装完 starship 后,载入时间在 600~700ms 之间,差强人意

kawaiidora

23

kawaiidora      2024 年 7 月 20 日 via Android

不带插件就很快,但凡装一个插件速度就慢下来了

但是刚需 psreadline ,最后躺平了