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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Fish shell 2.2

154 点作者 siteshwar将近 10 年前

12 条评论

err4nt将近 10 年前
I use Fish shell on Ubuntu and OS X for basic stuff: file manipulation, using command-line apps, and occassionally doing some light shell scripting to automate my workflow.<p>Coming from BASH this shell feels like a much-needed update! Instead of worrying to make sure my terminal has all of these feature and then having a different experience in each terminal app - now All of the features are in shell not the terminal and I can connect anywhere, from any device, and enjoy the same setup.<p>The only two downsides are actually the same downside: its not compatible with BASH&#x27;s shell scripting, which means you often cant just run shell scripts written by others, you may have to reformat it a little first. Same if true for how you format aliases and a few other shell-related stuff you put in your options file. It will still all work, but unless it&#x27;s been ported to Fish&#x27;s syntax it may need to be updated or rewritten.<p>This means that all of my scripted automation I have done is Fish-specific for now and wont run in regular BASH.
评论 #9873350 未加载
StavrosK将近 10 年前
I use fish exclusively and swear by it. I switched to zsh some years ago and enabled fish emulation, but it was slower, and I realized all I was doing was using fish by proxy, so I switched back to fish.<p>It&#x27;s fantastic, I urge everyone to give it a try. Pretty much the only valid complaint I see here is from people who have bash code that needs to be sourced to run. I definitely think that it&#x27;s worth rewriting some code to switch to a much superior shell, though.
评论 #9874920 未加载
jonotime将近 10 年前
Fish shell is awesome. But yes, compatibility of sourced functions was a bit of a problem for me. After about a year with it, I switched back to zsh. With a couple plugins I was able to get much of the fish features out it, while keeping the bash compatibility. Here is how I do it.<p>Install oh-my-zsh, and enable I couple plugins. Here&#x27;s what I have in my config: plugins=(git history-substring-search zsh-syntax-highlighting docker sudo)<p>In terms of &#x27;enjoying the same setup on all devices&#x27;, I use dropbox (or owncloud), to sync my config. All I have to do is add this at the bottom of my .zshrc file: source ~&#x2F;Dropbox&#x2F;global.zshrc<p>My last tip about directory jumping, for keedot, is there are methods that will do this for you. I use fasd (<a href="https:&#x2F;&#x2F;github.com&#x2F;clvv&#x2F;fasd" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;clvv&#x2F;fasd</a>) which you can add to your shell and will remember the directories you use often so you dont have to make special cases for specific ones. Check out the &#x27;z&#x27; command. It has been amazingly useful.
Revell将近 10 年前
My main gripe with a shell like Fish is that it won&#x27;t work with the trusted ol&#x27; BASH scripts. Seeing as I deal with quite some BASH scripts on a day-to-day basis at work this keeps me from trying it out, even though I&#x27;d love to be able to use something more sophisticated&#x2F;evolved than plain BASH.
评论 #9873493 未加载
评论 #9873346 未加载
评论 #9873600 未加载
评论 #9873419 未加载
rf3000将近 10 年前
Fish is probably my favorite shell after having worked with csh, bash, and zsh. But I have to use RVM at work, and it&#x27;s a real bummer that RVM and Fish don&#x27;t play nice with each other. I know rbenv works great with Fish, but I&#x27;m stuck with RVM at work. So using zsh as a second choice for now.
hartator将近 10 年前
How does it compare to zsh (more specialy the package o-my-zsh)? The only thing that catch my eyes was the shell command being completed automatically in grey in the background. That will be great to have this in zsh.
评论 #9876169 未加载
评论 #9875032 未加载
konceptz将近 10 年前
I&#x27;ve been using fish shell on osx for the last 3 years. It&#x27;s fun and puts ctrl-r in front of my typing without being obtrusive. I&#x27;m glad to see it here.
threatofrain将近 10 年前
I&#x27;d like to use Fish more, but my biggest worry is that many tools don&#x27;t come with instructions or support for Fish. I think that means you have to be committed to learning a lot about Fish, or use two shells?
评论 #9874899 未加载
x5n1将近 10 年前
i used fish 10 years ago. since then i use zsh. i am happy with zsh. but fish is a good shell. incredible it&#x27;s still being developed.
评论 #9873448 未加载
vially将近 10 年前
I can&#x27;t seem to find a changelog but I suppose this release should include vi-mode? Can&#x27;t wait to try it out.
评论 #9874221 未加载
voidz将近 10 年前
Awesome! 90s, here I come!
评论 #9873331 未加载
评论 #9873336 未加载
kolev将近 10 年前
Awesome! Remove the built-in web server and count me in!
评论 #9874332 未加载
评论 #9873750 未加载
评论 #9874061 未加载