30 ms·
Fish 3.4.0
- lsllc 5y agoSee last weeks discussion: https://news.ycombinator.com/item?id=30660587 https://news.ycombinator.com/item?id=30660587
- gcoguiec 5y agoI feel productive with my Alacritty + Fish (with a starship.rs prompt) setup. I can even swap the shell, and I get the same user experience. It's consistent and blazing fast, and that's all I ask.
- thecosmicfrog 5y ago> fish’s command substitution syntax has been extended: $(cmd) now has the same meaning as (cmd) but it can be used inside double quotes That's pretty big news for a more POSIX-like behaviour!
- Macha 5y agoThey've been doing these small improvements to support more standard syntax for a while and I approve. (e.g. 3.0 added &&/|| as aliases for and/or, 3.1 added &> redirection syntax, and "X=Y foo" for setting variables for one command)
- Osiris 5y agoThey did it also because with the old syntax it was unintuitive how to put commands inside quotes. It borrowed the new syntax from bash but it wasn't ONLY to be more bash compatible. It solved a real fish shell problem also.
- cpach 5y agoNitpick: The $(…) syntax was not invented by GNU, it was invented by Kenneth Almquist at the University of Washington. https://www.in-ulm.de/~mascheck/various/ash/#original https://www.in-ulm.de/~mascheck/various/ash/#original
- deleted 4y ago[deleted]
- msoad 5y agoCopy-pasting little snippets with `"$(command)"` in them has always been a bit of annoyance. Happy to see it improving!
- aladine 5y agoAgreed with it. It is the highlight of this release.
- robin_reala 5y agoPreviously discussed: https://news.ycombinator.com/item?id=30660587 https://news.ycombinator.com/item?id=30660587
- pkilgore 5y agoAny other long-suffering bash user switched to fish and never looked back? Why? Have you switched and ended up coming back to bash? Why? - Long-suffering bash user
- cube2222 5y agoSwitched and never came back. Always recommend people to use fish if they're not the "customize everything everywhere to my liking" type. The defaults of fish are great and common tasks are simple. The for loop syntax was so intuitive I got it right the first time without checking Google (which I have to do every time I write a bash for loop). Not much more to say I think.
- abdusco 5y agoVery true. As another long-time fish user, it gets a lot of things right. But I still write scripts in Bash if I need to share it with someone else. These days, I'm playing with xonsh[0]. If I don't use the "standart" shell bash, I might as well use something that's integrated with Python. [0]: https://xon.sh/tutorial.html https://xon.sh/tutorial.html
- mmmmmbop 5y ago> Always recommend people to use fish if they're not the "customize everything everywhere to my liking" type. Fully agree. It feels like fish is the Apple of shells, in that regard. Unless you really love to tinker with your shell, the great defaults and great UX make it really easy to recommend.
- nirvdrum 5y agoI find myself customizing fish way more than I ever did with Bash. Writing custom completions is easy and I find the scripting syntax a lot nicer. Combining the two is really powerful. Granted, fish ships with a ton of completions out of the box so you may not need to write your own.
- 5y ago
- vzaliva 5y agoWhat about Oh My Fish https://github.com/oh-my-fish/oh-my-fish https://github.com/oh-my-fish/oh-my-fish Has it been upgated to support new version?
- tarellel 5y agoI love using oh-my-fish but I honestly think a lot of people have moved to using fisher. Because of OMF's lack of updates. https://github.com/jorgebucaran/fisher https://github.com/jorgebucaran/fisher
- andrewshadura 5y agoUnfortunately, mc has been broken since 3.2.0 IIRC and nobody's working on it.
- ridiculous_fish 5y agoCurious what issue you're seeing with mc? There was an mc fix in fish 3.2.1 [1] but we know of at least one remaining issue [2]. 1: https://github.com/fish-shell/fish-shell/issues/7769 https://github.com/fish-shell/fish-shell/issues/7769 2: https://github.com/fish-shell/fish-shell/issues/6767 https://github.com/fish-shell/fish-shell/issues/6767
- kytazo 5y agoJust loving every single bit of it since I switched to it. Had a couple of thoughts of migrating to zsh mostly because its more POSIX compliant but it doesn't look like such a valid argument as time passes by
- pmarreck 5y agoI made the mistake last year of falling in love with xs-shell https://github.com/TieDyedDevil/XS https://github.com/TieDyedDevil/XS, talking to its maintainer (who recently put xs out to pasture, as it were) who is now moving all his stuff to es-shell, switching my romance to es-shell https://wryun.github.io/es-shell/ https://wryun.github.io/es-shell/, merging in 2 forks of it to my own version https://github.com/pmarreck/es-shell/ https://github.com/pmarreck/es-shell/ aaaand having a kid and basically running out of time. This shell makes a ton more sense to my brain than the usual bash/zsh/fish rigmarole, it just needs some love. It's older, but basically much smarter. The last thing I was working on was a way to capture all of stdout, stderr and return code from a single run of a command, for testing purposes, because the OTHER thing es-shell desperately needs is a proper test suite, and being able to assert on all/any of those side-effects (and the return value) is IMHO fundamental to a proper suite. I figured one out for bash https://github.com/pmarreck/tinytestlib https://github.com/pmarreck/tinytestlib but not one for es yet. Sorry for hijacking your comment
- brimstedt 5y agoAnyone know of a good comparison between the different shells?
- RobertMiller 5y agoThere are several feature comparison tables for numerous shells here: https://en.wikipedia.org/wiki/Comparison_of_command_shells https://en.wikipedia.org/wiki/Comparison_of_command_shells
- ducktective 5y agoHere is my TLDR: Writing scripts: #!/usr/bin/env bash (or #!/usr/bin/env sh for POSIX-compliance) Use fish for interactive shell. It's faster than zsh Zsh seem to have more plugins
- eddyg 4y agoIn what ways is fish faster than zsh? I can be believe it’s faster than a poorly configured zsh (which unfortunately is quite common), but would be curious to see actual test results, with things like “input lag”, “time to first prompt”, “command lag”, etc. like is measured with the excellent zsh-bench (https://github.com/romkatv/zsh-bench#what-it-measures https://github.com/romkatv/zsh-bench#what-it-measures)
- ducktective 4y agoI've never tried zsh. I remember reading in the interwebz that if you go towards feature-parity with fish in a zsh setup, the latencies here and there, adds up and makes it slower than fish. Here is a relevant blog post: https://carlosbecker.com/posts/fish/ https://carlosbecker.com/posts/fish/ But yeah, I don't have any proofs.
- eddyg 4y agoYeah, that blog post is doing exactly what https://github.com/romkatv/zsh-bench#how-not-to-benchmark https://github.com/romkatv/zsh-bench#how-not-to-benchmark says not to do...
- m1keil 5y ago"Autosuggestions can now be turned off" Finally. I should give it a try now.
- msoad 5y agoFish is so great! I'm a user for 7 years. The autocomplete suggestions are so helpful! However, since using Github Copilot I'm expecting a bit smarter suggestions. I wonder if anyone has tried putting a GPT-3 like engine behind command line autocomplete suggestions. Or maybe the Copilot team offer a sort of API for this.
- O_H_E 5y agoYup, right here https://www.youtube.com/watch?v=j0UnS3jHhAA https://www.youtube.com/watch?v=j0UnS3jHhAA I remember that I was able to replicate this last year, not 100% sure why I'm not using it daily tho. :D One thing to note, the limited waitinglist he talks about in the video is done, and now you can sign up and "pay" for ~NLP~...ahem CLP tokens as OpenAI calls them
- Trasmatta 5y agoNot GPT-3, but you may be interested in this: https://github.com/cantino/mcfly https://github.com/cantino/mcfly
- Tijdreiziger 5y agoAnybody on HN who's using this and wants to share their experience? It looks interesting, how does it compare against fish?
- Trasmatta 5y agoYou can use it with fish. Here are a couple of previous threads on it: https://news.ycombinator.com/item?id=18593015 https://news.ycombinator.com/item?id=18593015 https://news.ycombinator.com/item?id=23758138 https://news.ycombinator.com/item?id=23758138
- Tijdreiziger 4y agoI'll check out those threads, thanks!
- 5y ago
- petepete 5y agoI've just taken Fish for a test drive and I'm really impressed. I use the Starship prompt in Zsh and it worked out of the box in Fish. It appears direnv will too (which I rely on). The one thing I can't work out is how to change the cursor to a block, it's a line. No vi-mode or anything, just a nice rectangle. I tried `set fish_cursor_default block` to no avail.
- petepete 5y agoSo after logging out and back in it started working. Switched over my config and I'll give it a go full time.
- drcongo 5y agoI used OhMyZsh for years with the Agnoster power line theme and over the years it got slower and slower. Tried Fish about 6 years ago and immediately spent the rest of the day tweaking an Agnoster theme to my liking because everything about it was better than Zsh and waaaay faster. My fork is here [0] for anyone interested, though the readme and screenshots are from the original. [0] https://github.com/drcongo/agnoster https://github.com/drcongo/agnoster
- ratorx 5y agoI’d say that’s more a OhMyZsh problem than a ZSH problem. There’s definitely faster and better frameworks/plugin managers. However the crux of the issue is that a bunch of the neat features are built into default Fish vs being behind plugins in ZSH. I still think (with sufficient effort), ZSH is the best (and I think configurable to be faster than default Fish with equivalent features), but Fish is the best out of the box experience.
- pmarreck 5y agoBash even has OhMyBash now, which got me enough of OhMyZsh that I decided to... stick with Bash. lol
- tartoran 5y agoI love fish. It helped me get into linux terminal. It really accelerates the learning curve and turbocharges explorability. I wish more TUI types of apps took hints from fish’s UX
- DrBenCarson 5y agoWanted to love/daily-drive fish but the incompatibility with bash/zsh made things more troublesome than I had the time and patience for. Exciting to see it inching toward POSIX compatibility
- deleted 5y ago[deleted]
- DavideNL 5y agoYou can just use/run all bash and zsh scripts from your fish shell...
- deagle50 5y agoDoes anyone know how to disable the bright red color when you first start typing a word? I find it very distracting (specially on over-saturated wide gamut displays) and went back to zsh because of it.
- opan 5y agoIs that perhaps the syntax highlighting telling you that you haven't typed a valid command yet? I haven't used fish (I use zsh), but that's my guess. So, I guess try disabling syntax highlighting or changing colors related to it.
- yewenjie 5y agoPeople who have replaced fish with something else (other than bash and zsh) after using it for a significant time, to what and why?
- progforlyfe 5y agoI used fish for a few years and finally switched to zsh. I wouldn't consider myself a super shell power user, so eventually I got tired of trying to make standard things work (such as nvm and similar helper utilities). Yes there are workarounds and solutions but I just wanted plug and play for stuff I'd find in the wild. Turns out that zsh with ohmyzsh has much of fish's functionality (that I utilized anyway), so I'm happy with it.
- daveidol 5y agoFYI most of these things are available as part of oh-my-fish[1] [1] https://github.com/oh-my-fish/oh-my-fish#readme https://github.com/oh-my-fish/oh-my-fish#readme
- dorianmariefr 5y agoyeah nvm is a pain on fish, I ended up using the real nvm with: fisher install FabioAntunes/fish-nvm edc/bass https://github.com/FabioAntunes/fish-nvm https://github.com/FabioAntunes/fish-nvm
- dorianmariefr 5y agoI wish capistrano would work with fish but I will need to separate the capistrano user and my user on the server anyway
- pmarreck 5y agoare people still using capistrano? wow
- Sugimot0 5y agoI've been using fish for 2 years now and I pretty much live in the terminal. I would feel handicapped without it. Just use fish and use shebangs `#!/bin/sh` (which should be in your scripts anyways) and you can keep writing/running POSIX scripts all day. I think it's the best option until nushell[0] is ready. As an added bonus now that you don't use bash interactively you can substitute dash[1] and increase the speed of most POSIX scripts, win-win. I'd also recommend zoxide[2], i feel like it's one more must have no matter what you do in the shell. [0]: https://github.com/nushell/nushell https://github.com/nushell/nushell [1]: http://gondor.apana.org.au/~herbert/dash/ http://gondor.apana.org.au/~herbert/dash/ [2]: https://github.com/ajeetdsouza/zoxide https://github.com/ajeetdsouza/zoxide