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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Switching to a Zsh Shell

35 点作者 davidblair超过 15 年前

6 条评论

compay超过 15 年前
I spend a lot of time on the command line, and personally find having that much info in my prompt <i>incredibly</i> distracting. I would really prefer to leave things like battery monitoring to my OS or Window Manager - not my shell prompt. The screenshots in this article look like the kind of stuff that you do when you're just starting with a new piece of technology and you want to use every single feature just to play around. Cool and fun, but at the end of the day perhaps not very useful.
评论 #1092483 未加载
评论 #1092681 未加载
robbyrussell超过 15 年前
Steve is using Oh My Zsh, which is one of my pet projects. You can find it on Github.<p><a href="http://github.com/robbyrussell/oh-my-zsh" rel="nofollow">http://github.com/robbyrussell/oh-my-zsh</a>
burke超过 15 年前
I like having extra information in my prompt, but not to the point that it takes up a whole line of its own. Here's what mine looks like: <a href="http://grab.by/26hX" rel="nofollow">http://grab.by/26hX</a>
评论 #1092489 未加载
flashingpumpkin超过 15 年前
To be honest, most of that stuff works just fine in BASH too.<p><a href="http://gist.github.com/277975" rel="nofollow">http://gist.github.com/277975</a><p>That's my bash prompt, doing the same. Except, it doesn't factor in mercurial repositories, but that'll be a breeze to add.<p>Displaying: (&#60;virtual_env&#62;) user@host [ &#60;folder&#62; ~&#60;branch&#62; &#60;* available changes&#62;]$
评论 #1093787 未加载
kree10超过 15 年前
There's a more general solution for putting VCS information in your zsh prompt called vcs_info. I don't know if it covers all the features of these hg and git prompts, but it does support svn and cvs (among others), which I still have to use for some projects.<p><a href="http://zsh.sourceforge.net/Doc/Release/User-Contributions.html#SEC273" rel="nofollow">http://zsh.sourceforge.net/Doc/Release/User-Contributions.ht...</a>
评论 #1093796 未加载
mrud超过 15 年前
For a good zsh configuration have a look at <a href="http://grml.org/zsh/" rel="nofollow">http://grml.org/zsh/</a> (vcs_dir enabled prompt, persistend dir stack, directory based profile and many more)<p>For a general zsh overview have a look at <a href="http://grml.org/zsh/zsh-lovers.html" rel="nofollow">http://grml.org/zsh/zsh-lovers.html</a>