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

推荐订阅源

The Register - Security
The Register - Security
云风的 BLOG
云风的 BLOG
U
Unit 42
F
Fortinet All Blogs
The GitHub Blog
The GitHub Blog
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
D
Docker
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
S
Secure Thoughts
Hacker News: Ask HN
Hacker News: Ask HN
Vercel News
Vercel News
S
Security @ Cisco Blogs
GbyAI
GbyAI
Stack Overflow Blog
Stack Overflow Blog
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
I
Intezer
MongoDB | Blog
MongoDB | Blog
AI
AI
MyScale Blog
MyScale Blog
Engineering at Meta
Engineering at Meta
Y
Y Combinator Blog
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
P
Proofpoint News Feed
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
W
WeLiveSecurity
博客园 - 叶小钗
S
SegmentFault 最新的问题
N
News | PayPal Newsroom
WordPress大学
WordPress大学
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
D
DataBreaches.Net
小众软件
小众软件
Microsoft Azure Blog
Microsoft Azure Blog
Spread Privacy
Spread Privacy
H
Help Net Security
美团技术团队
博客园 - 司徒正美
T
Threat Research - Cisco Blogs
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
K
Kaspersky official blog
Application and Cybersecurity Blog
Application and Cybersecurity Blog
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
V
Vulnerabilities – Threatpost
TaoSecurity Blog
TaoSecurity Blog
N
Netflix TechBlog - Medium
L
Lohrmann on Cybersecurity
J
Java Code Geeks
量子位
Martin Fowler
Martin Fowler
博客园_首页

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 请教一下.ps1 运行时如何让 powerShell 同时显示所运行命令的内容 - V2EX 有什么不错的 powershell 书籍吗? - V2EX PowerShell 是否可以实现类似 expect 的功能? - V2EX PowerShell 启动慢 - 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 数据库里
powershell7, 执行速度和自动补全速度都慢的令我抓狂 - V2EX
chackchackGO · 2022-09-13 · via PowerShell

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

powershell7 第一条指令的延迟大概 3s+, 后续使用 ls 指令也有 2s 左右延迟, 自动补全速度也很慢.

我没有 google 到类似的问题, 请问有类似情况的朋友吗?
我的环境是原版 windows10, 保持着更新. version 21h2(build 19044.1889)

thinkershare

2

thinkershare      2022 年 9 月 13 日

我的 powershell 7.2.6 在 Windows 10 / Windows 11 上很快. 感觉和 Linux bash shell 差不多, 看下 CPU 占用?

lneoi

3

lneoi      2022 年 9 月 13 日

我感觉每次启动特别慢,人要等傻了

thinkershare

5

thinkershare      2022 年 9 月 13 日

奇怪了, 我的都是秒开, 你们的为什么会慢呢? 我用的是 Windows Terminal, Terminal 常驻后台. 从来没感觉到卡过. 旧的 Powershell 的确卡的一比, 然后我就删除掉了旧的 powershell.

lneoi

6

lneoi      2022 年 9 月 13 日

@thinkershare 不知道是不是安装 miniconda 影响,总体在 vscode 里和微软的 terminal 会相对更慢,直接打开会快一些些

SJ2050cn

7

SJ2050cn      2022 年 9 月 13 日

有吗,我启动差不多 700 多 ms ,执行 ls 这种语句没延迟啊,你是不是插件装多了。

Mithril

8

Mithril      2022 年 9 月 13 日

我用 ZSH 进一些大点的 Git 库的文件夹就会非常卡,它总要刷 status 。
不知道你是不是用了类似的插件。

Huelse

9

Huelse      2022 年 9 月 13 日

要么你插件太多,要么你用了在线配置

kokutou

10

kokutou      2022 年 9 月 13 日 via Android

杀毒问题吧,

CharlieJiang

12

CharlieJiang      2022 年 9 月 13 日

我怀疑是 Git 的问题,是不是在很大的 Git 库下
然后以前加载 Profile 要花很多时间,不知道哪个版本之后突然就很快了

keepeye

13

keepeye      2022 年 9 月 13 日

我一直想问一下 powershell 有没有历史命令自动补全功能的插件?就像 ohmyzsh 或 fish 一样

402124773

14

402124773      2022 年 9 月 13 日

@keepeye 有的

&t=1886s
看看这个视频

rpish

16

rpish      2022 年 9 月 13 日

@SJ2050cn 可以把 prompt 从 oh-my-posh 换到 starship 提升启动速度。
然后在 terminal 配置里加上-NoLogo 启动参数,关闭启动提示。

chackchackGO

17

chackchackGO      2022 年 9 月 13 日

@thinkershare
@SJ2050cn
@Huelse
用的 powershell 7.2.6
terminal 用的 windows terminal

没有 cpu 问题,没有安装杀毒软件(且禁用了 windows defender), 没有安装过插件和搞过在线配置. 刚刚从 microsoft 官网里下载的安装程序安装的

我刚刚仔细手工测试发现:
windows terminal 和在 jetbrains 系列的 terminal(指定了 powershell7 的 pwsh.exe) 第一条命令都有 0.5s~2s+较高的延迟
(不过好像多重新开几次 shell 之后就基本只有 0.5s 了)

直接运行 powershell7 就没有体感延迟.

很奇怪
不要觉得我有点钻这个细枝末节... 只是真的有时候忽然要切到 shell 看信息 第一条命令延迟 3s 和 powershell 1.0 cmd 之类的阻塞感相比 太难受了

Huelse

21

Huelse      2022 年 9 月 13 日

@keepeye #13 有,搜 oh-my-posh 自动补全相关的

chackchackGO

24

chackchackGO      2022 年 9 月 13 日

@zhuangzhuang1988 我在 17 楼说过了我是刚刚安装的那种.
我甚至主动去 powershell 文件夹里删掉了所有 module 以及从 github microsoft store 等地方重装过.
.net 也检查过
累了 已经去 github 提 issue 了

thinkershare

25

thinkershare      2022 年 9 月 13 日

@chackchackGO 这种错误, 不知道官方能否复现, 如果无法复现, 我估计官方也很难修正. 看下 powershell 有没有详细的日志, 看查查日志到底是哪里慢在哪里了.

ByteCat

27

ByteCat      2022 年 9 月 14 日

pwsh 就是垃圾,有时候开的时候会卡住 30s 左右,然后配置文件加载失败,难用死了,是商店里下载的,装了 oh-my-pwsh ,现在换 Mac 了,真爽

sw926

28

sw926      2022 年 9 月 15 日

git 要装 64 位的,32 位会卡,如果用了 oh-my-posh ,换一个干净的主题

chackchackGO

29

chackchackGO      2022 年 9 月 15 日

@sw926 我的 git 目录在 `program files `下 非 `program files(x86)`
是 64 位
纯净安装的 pwsh
我甚至尝试卸载了 git