TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

oh-my-posh: The most customisable and low-latency cross platform/shell prompt

30 点作者 tambourine_man9 个月前

7 条评论

tetris119 个月前
I sure do love it when a script runs in the background to poll a website I didn&#x27;t give consent to, doing god knows what, all whilst innocuously pressing the return key....<p>My PS1 is based on a 20 line prompt I saw on mastodon. It does git, virtualenv, conda, guix, and some path shortening. 20 lines.<p><a href="https:&#x2F;&#x2F;mstdn.science&#x2F;@mtekman&#x2F;111861830339082890" rel="nofollow">https:&#x2F;&#x2F;mstdn.science&#x2F;@mtekman&#x2F;111861830339082890</a>
评论 #41309002 未加载
评论 #41307841 未加载
psd19 个月前
Starship exists. Oh-my-posh is not even remotely competitive. Starship is faster and has much nicer config.<p>I moved off omp 2-3 years ago, when it was on v7, and the final straw was that there were enough braking changes that I had to version-pin.<p>If I used bash-like shells more than once a month, I could use the same starship config in bash.
pxc9 个月前
I decided to actually try this out mostly because of the overwhelmingly negative comments here. No need to commit, just a little `nix-shell nixpkgs#oh-my-posh --command zsh` and `source &lt;(oh-my-posh init zsh)`. It&#x27;s fine! It&#x27;s not a PowerShell script anymore (and hence it&#x27;s not insanely slow anymore). I&#x27;m a happy Starship user and on my machine this performs comparably (they&#x27;re both a bit slow in very large git repos, otherwise they&#x27;re quite fast), but not too bad. This has a really fun aesthetic, too! Much more like old-school Powerline than my Starship config. Taking it for a test drive was a fun change for me. :)<p>Y&#x27;all, I don&#x27;t like the update check either. Self-updating behavior and similar crap sucks in all apps, imo, and it seems especially out-of-place in command-line prompts like this one. But a lot of people seem to like it, especially on operating systems that don&#x27;t have first-class package management. I&#x27;d turn it off, and I&#x27;d expect a decent free software distribution to disable it by default in their packages.<p>At the end of the day, this is the work of some guy to try to make his own shell prompt delightful to him. It&#x27;s not a slow PowerShell module, although a project of the same name used to be that-- it&#x27;s a younger cousin of Starship. And it&#x27;s pretty good.
createaccount999 个月前
The comments in this thread convinced me to uninstall oh-my-posh.
commercialnix9 个月前
At this one startup I was at, I asked one of the fresh grad hires who had a really neat looking terminal what his Oh My Zsh plugins did. He couldn&#x27;t name more than two and didn&#x27;t really know them. I asked him what a process&#x27; exit status was and somehow he didn&#x27;t know it.<p>All of the other fresh grad hires tried to use Ubuntu systems with a Windows XP mindset.<p>Having a central bank really is a great evil.
评论 #41313311 未加载
评论 #41307920 未加载
benreesman9 个月前
Starship seems way faster to me.
latency-guy29 个月前
I have an extremely rational hatred of this software. Not a typo or a misunderstanding of the phrase &quot;irrational hatred&quot;.<p>I will go out of my way to delete this from a codebase.<p>I will go out of my way to block the url to github, and remove this from package manifests.<p>I will ensure that anything that would break oh-my-posh is a fundamental part of the software.<p>Nothing against oh-my-posh, its just too slow.<p>What I actually do hate are people, the kind of people who try to mandate and even further depend on oh-my-posh semantics. Or even more generally mandate cosmetic things in a generalized development environment. Your pretty colors and ligatures are jarring noise that actively destroys my attention and focus.<p>I value my terminal experience heavily, oh-my-posh has very much so been useless to an active deterrent in development to me due to it&#x27;s slowness and poor defaults. Cross platform. But by far my worst experience is Windows.<p>And there is only so much you can blame on Windows Terminal (and other emulators on Windows) being slow due to all the jank on supporting so many bad algorithms, bad internal representation, codepoints, and encodings.<p>I especially hate the git &quot;support&quot;. A moderately worn git repo will show you a noticeable slow down in standard operations just due to the number of objects, references, etc. that exists from the lifetime of active development. Yet rev-parse is effectively depended on to write out the branch, commit hash, etc.<p>There&#x27;s more, far more. I am very unlikely to change my mind too. Maybe this software is for people who only touch the terminal precisely when they have no other option. And maybe I&#x27;m just too far from that demographic.
评论 #41306912 未加载
评论 #41307855 未加载