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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Starship.rs: minimal, fast prompt for any shell

174 点作者 highmastdon超过 1 年前

26 条评论

juxtapose超过 1 年前
I&#x27;ve been using Starship for quite some time, and it&#x27;s awesome! Definitely recommend it to anyone who wants a fast, modern, and rich prompt.<p>Besides the product, the community is pleasantly awesome as well. I&#x27;ve contributed a module to it and the maintainer has done a good job reviewing and testing. Heck, they even have a Discord server for contributors.
评论 #39142607 未加载
neilv超过 1 年前
The &quot;minimal&quot; part is a little funny. Historical minimal shell prompts:<p><pre><code> $ # % &gt;</code></pre>
评论 #39140151 未加载
评论 #39139939 未加载
Narushia超过 1 年前
My interactive shell experience has substantially improved after installing Starship. :) The other thing was changing from Bash to Fish.
评论 #39144594 未加载
评论 #39142898 未加载
评论 #39141344 未加载
lazypenguin超过 1 年前
I discovered starship when I started using kubernetes at work. Previously I relied on standard bash-isms for path, hostname, etc. but knowing what context and namespace I&#x27;m in before I execute a command is quite convenient. I&#x27;m normally not one to &quot;customize&quot; my CLI experience at all but this was a nice addition to the toolbox. Documentation is good, customizable, reliable and has support for a lot of things. Would recommend.
weebull超过 1 年前
Am I the only one who is getting tired of &quot;It&#x27;s X in rust&quot; type projects? It&#x27;s making me dislike the community.<p>Rust is not a user feature, it&#x27;s an implementation detail.<p>&lt;cue people telling me I should consider Rust a feature&gt;
评论 #39141407 未加载
评论 #39141565 未加载
评论 #39140954 未加载
评论 #39142072 未加载
评论 #39141023 未加载
评论 #39141427 未加载
评论 #39142120 未加载
评论 #39141205 未加载
评论 #39142252 未加载
评论 #39149074 未加载
评论 #39145213 未加载
评论 #39143990 未加载
评论 #39151942 未加载
评论 #39148605 未加载
rgoulter超过 1 年前
Starship&#x27;s an excellent prompt replacement.<p>I think it goes well with the fish shell: it&#x27;s much nicer than the default, without requiring customisation.
评论 #39141004 未加载
评论 #39140056 未加载
评论 #39139452 未加载
srid超过 1 年前
If you use home-manager, installing starship is as simple as adding `programs.starship.enable = true;`.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;srid&#x2F;nixos-config&#x2F;blob&#x2F;master&#x2F;home&#x2F;starship.nix">https:&#x2F;&#x2F;github.com&#x2F;srid&#x2F;nixos-config&#x2F;blob&#x2F;master&#x2F;home&#x2F;starsh...</a><p>Incidentally, starship also gives a visual indication of whether you are in the nix shell or not, which is pretty handy when using direnv:<p><a href="https:&#x2F;&#x2F;nixos.asia&#x2F;en&#x2F;direnv" rel="nofollow">https:&#x2F;&#x2F;nixos.asia&#x2F;en&#x2F;direnv</a>
myaccountonhn超过 1 年前
I’m probably on the wrong side of history, but I just don’t like how much color there is in modern cli tools. It is distracting
评论 #39139620 未加载
评论 #39139531 未加载
评论 #39138001 未加载
评论 #39139630 未加载
评论 #39141545 未加载
评论 #39140114 未加载
评论 #39138659 未加载
usrbinbash超过 1 年前
&gt; &quot;minimal&quot;<p>Here is what a minimal shell prompt looks like:<p><pre><code> $ </code></pre> Here is another one which only uses the shells own facilities:<p><pre><code> current-directory@hostname $ </code></pre> Running a complex piece of software every time the shell needs to display it&#x27;s prompt, is not &quot;minimal&quot;, regardless of how fast and well written said piece of software is.
评论 #39141464 未加载
tecoholic超过 1 年前
Installed it yesterday and it threw my email and AWS default region on to the prompt. Pretty bad defaults. Promptly removed it.
评论 #39138802 未加载
评论 #39138218 未加载
joshstrange超过 1 年前
I spend so little time relatively on my own machine’s terminal and even when I do I don’t want it to be totally different from the boxes I SSH into every day. That context switch would be frustrating. Nor do I have the desire to push for something like this to be installed on our fleet of servers.<p>Do the people who use this (along with terminal emulators that require you install things on the host to get the full power) just not use other machines and&#x2F;or install stuff like this on them? Just seems odd to me personally but I’m interested in how others use it. Do you only use your own computer&#x2F;terminal so it’s not an issue?
评论 #39141215 未加载
评论 #39149197 未加载
评论 #39142334 未加载
the_gipsy超过 1 年前
Two lines is wasteful, but it does look nice that the input is always full width.<p>Another minimal prompt: <a href="https:&#x2F;&#x2F;lib.rs&#x2F;crates&#x2F;pista" rel="nofollow">https:&#x2F;&#x2F;lib.rs&#x2F;crates&#x2F;pista</a>
leo150超过 1 年前
The main reason I use fish shell is for the autocompletion feature it offers out of the box. If it had been an option back in the day, I would have tried something like starship
评论 #39139839 未加载
rollcat超过 1 年前
Since this is now a share your prompt thread, here&#x27;s mine:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;rollcat&#x2F;etc&#x2F;tree&#x2F;master&#x2F;cmd&#x2F;prompter">https:&#x2F;&#x2F;github.com&#x2F;rollcat&#x2F;etc&#x2F;tree&#x2F;master&#x2F;cmd&#x2F;prompter</a><p>It&#x27;s quite portable (didn&#x27;t test on Windows though); ~170 lines of Go; no dependencies outside of stdlib; calls no external commands; supports SSH, git, Docker, nix, and virtualenv; extremely simple to hack on.
评论 #39140957 未加载
jwalton超过 1 年前
See also <a href="https:&#x2F;&#x2F;kitschprompt.com&#x2F;docs&#x2F;intro" rel="nofollow">https:&#x2F;&#x2F;kitschprompt.com&#x2F;docs&#x2F;intro</a>
jasonjmcghee超过 1 年前
I find this to be a rather pleasant website, well done.
daliusd超过 1 年前
I am using starship for some time and it is great. The only advice is to avoid `custom` as it is slow: not too much but might be annoying.
评论 #39141777 未加载
HackerThemAll超过 1 年前
So now I need to install nerd font and this software on all clients&#x27; machines and VMs and whatnot. Asking IT departments for permission and waiting for compliance check.<p>Or should I do it only on toy machines, risking different experience between them and production.<p>No, thanks. Plain bash will suffice. Just like it did for so many years.
评论 #39149155 未加载
评论 #39145937 未加载
KolenCh超过 1 年前
I tried this couple of times and once a few days ago and wasn’t impressed. Coming from powerlevel10k it seems more limiting and not really faster. Has anyone think starship is better than powerlevel10k and how?<p>Thanks.
shmerl超过 1 年前
Is there a Unicode symbol for source branch used there? Not really keen on using some specific fonts just for that.<p>I usually use simple ^ but having something like there would be nicer.
评论 #39140645 未加载
评论 #39140220 未加载
AtlasBarfed超过 1 年前
Is this like a competitor for power10k type stuff and zsh?<p>What makes this &quot;infinitely customizable&quot; aside from being turing complete?<p>I don&#x27;t see anything but ... a prompt.
评论 #39138683 未加载
评论 #39140985 未加载
drivingmenuts超过 1 年前
That capability already exists in Zsh, doesn’t it? Why would I need a third-party addon to do this thing?
评论 #39142140 未加载
arun-mani-j超过 1 年前
Starship users: how do you track updates? I manually update occasionally (mostly months)
评论 #39141224 未加载
评论 #39140951 未加载
评论 #39142218 未加载
评论 #39140727 未加载
cranberryturkey超过 1 年前
does this play well with omz?
评论 #39141250 未加载
arrakeen超过 1 年前
what kind of psychopath has a two line prompt?
评论 #39139591 未加载
评论 #39139865 未加载
评论 #39141077 未加载
评论 #39141588 未加载
评论 #39142280 未加载
评论 #39139873 未加载
评论 #39139559 未加载
评论 #39141467 未加载
YuukiRey超过 1 年前
It’s too bad this requires a Nerd font to be installed according to the landing page. I just don’t think that belongs in a terminal emulator and it should be optional
评论 #39139445 未加载
评论 #39140260 未加载
评论 #39139911 未加载
评论 #39139348 未加载