13 ms·
Lots of overlap in design goals with fish, except fish also places a premium on users interactively using the shell (which means friendlier in-repl experience b
by ComputerGuru 9y ago
Lots of overlap in design goals with fish, except fish also places a premium on users interactively using the shell (which means friendlier in-repl experience but a balancing act when it comes to features). Fish’ auto completions are incredible, too.
Best of luck to them. Another interesting shell to check out is elvish, lots of new ideas there (even if awkward to use).
(Disclosure: I’m one of the core fish devs/maintainers. Edit: The entire team is awesome and the others deserve virtually all the credit!)
- 0xdeadbeefbabe 9y agoDo you have anything to say about rc https://9fans.github.io/plan9port/man/man1/rc.html https://9fans.github.io/plan9port/man/man1/rc.html ?
- fusiongyro 9y agoIf you like rc, do you like es? http://wryun.github.io/es-shell/ http://wryun.github.io/es-shell/
- 0xdeadbeefbabe 9y agoI don't know. I don't like installing new things on servers in general.
- askz 9y agoBut you do test new things you install on your servers somewhere else, at least, I hope so.
- fusiongyro 9y agoSo, bash it is. :) I love using fish and enjoy scripting with it too, but I'm hampered by this fact as well, and mostly use bash at work when others might see it or have to use it.
- ComputerGuru 9y agoSpin up a virtual machine! (Or an EC2 t2.micro instance, free of charge)
- laumars 9y agoShameless self promotion but I'm writing my own shell, murex, as well[1] The goals of mine are akin to Fish in terms of REPL use but with a greater emphasis on scripting. Like Fish, murex also does man page parsing (in fact I wrote mine before realising Fish did the same), but unlike fish autocompletions can be defined by a flat JSON file (much like Terraform) as well as dynamically with code. Currently I'm working on murexes event system so you can have the shell trigger code upon events like file system changes. My ultimate aim is to make murex a goto tool systems administration tool - if just for myself - but the project is still young [1] https://github.com/lmorg/murex https://github.com/lmorg/murex
- djsumdog 9y agoI messed around with oil earlier this week when I saw this posted elsewhere and I've been a fish user for about 4 years now. I'll have to give yours a spin too. I'm glad there's a lot of shell innovation right now. I'm all for breaking posix shell standards and creating things that are way more usable. Fish's prompt customization, functions, highlighting, completion and searching are pretty amazing. I realize a lot of these little projects will come and go. No matter what, they're great learning tools for the creators/developers, exploring what it takes to make an interactive shell. Still, I hope we see more stuff like fish come out (and make no mistake, fish took a lot of years and a lot of devs. In the early days my instance would crash every once in a while in ways I couldn't easily reproduce). It's great that we're finally getting away from the traditional bash/zsh/ksh stuff and into newer shells that make coding and navigation easier.
- laumars 9y agoThank you and you're absolutely right about the process of creating a shell being a great learning tool! I've learned so much writing murex - even some stuff that I assumed I knew I quickly discovered my understanding wasn't quite right.
- andrewflnr 9y agoI just have to say, that's a beautiful name for a shell.
- cpach 9y agoThank you for your work on fish. It’s simply awesome. I love that I have only needed minimal amounts of tweaking. So far my fish.config is ~7 lines in total.
- chubot 9y ago(author here) Hm I've tried fish, and it seems very nice for interactive use. However I don't see it being used AT ALL for the cloud/linux use case? Those are the cases where you tend to get 1000+ lines of shell scripts. For example, I mention Kubernetes/Docker/Chef, and I've never seen fish in that space. I also don't know of any Linux distro that uses fish as their foundation -- they all appear to use a POSIX shell like bash/dash/busybox ash. fish is "on top". See Success with Aboriginal, Alpine, and Debian http://www.oilshell.org/blog/2018/01/15.html http://www.oilshell.org/blog/2018/01/15.html -- these distros are built with thousands of lines of shell scripts. Either 1) I don't know about such usage, 2) people don't know that fish can be used this way, or 3) there is some problem with using fish this way. I link to this post in the FAQ, which I think is a lot closer to Oil: https://ilya-sher.org/2017/07/07/why-next-generation-shell/ https://ilya-sher.org/2017/07/07/why-next-generation-shell/ It's basically the "devops" use case. (And as I mention the main difference between Oil and NGS is that Oil is compatible / has an upgrade path from bash.)
- katastic 9y ago>1000+ lines of shell scripts. Any time I have ever heard that, I've heard someone chime in "You shouldn't be using shell scripts for that." Can you explain a use-case where long shell scripts are superior to a scripting language like Python? p.s. I like that your language is statically typed.
- nickez 9y agoWhat is your take on Ion? https://doc.redox-os.org/ion-manual https://doc.redox-os.org/ion-manual
- chubot 9y agoIon looks great, but its goals are different -- most importantly, it doesn't provide an upgrade path from bash. (This is also the biggest difference between Oil and fish, Oil and Elvish, etc.) I talked with the authors of Ion on github almost a year ago. Ion was influenced by Oil, in particular this post: http://www.oilshell.org/blog/2016/11/06.html http://www.oilshell.org/blog/2016/11/06.html
- mswiss 9y agoI love fish! It's my jam thanks for doing what you do!
- zokier 9y ago> Another interesting shell to check out is elvish, lots of new ideas there (even if awkward to use). Elvish is pretty nifty, but the biggest failing point to me is that the fancy rich pipelines really work just for in-process stuff, which for me kinda loses the point of being a shell. Of course I do realize that rich (polyglot) interprocess pipelines is a difficult problem; some might say a pipedream.
- xiaq 9y agoInterprocess pipeline is a difficult problem only because there is no standard encoding. Elvish has pairs of builtin commands like from-json and to-json; so if your command takes JSON and writes JSON, you can use it in a pipeline like: ... | to-json | your-command | from-json | ... It is also trivial to wrap it into a function like: fn f { to-json | your-command | from-json }
- watersb 9y agoPowerShell on Windows is the only production system that I have used which passes "objects" through pipes. It's a challenge for me to use well; not sure all that richness is composable. Better programmers than I am would know.
- oelmekki 9y agoI totally love fish, it's the first shell that made me replace bash as my default shell (zsh was "just not enough" to justify losing compatibility, for me). But is this project really overlapping it? I see mostly fish as "UX" centered, while oilshell - as far as it's stated here - reminds me more of powershell (I found the idea of having a modern language behind it so cool when it was released, too bad it wasn't my ecosystem): looks like oilshell is targetting scripting more than UX. Anyway, I love the idea of having several shells who try to have a new look on what a shell is. EDIT: oh, btw, let's not consider no significant scripting can be done with bash, just look at the incredible work from dokku team ;) https://github.com/dokku/dokku https://github.com/dokku/dokku
- TylerE 9y agoWhy are you worries about losing compatibility? You can run bash within zsh.
- Osiris 9y agofish-shell is the first thing I install on any *nix box I work on, including macOS, VPS servers, desktop (Ubuntu), and even Windows Subsystem for Linux. The feature I use the most is automatic history search by typing part of a command and hitting UP to search the history. I also find the scripting language more straight-forward.
- mindcrime 9y agoThe feature I use the most is automatic history search by typing part of a command and hitting UP to search the history. Doesn't bash have that same feature? Or is there some subtle difference between what you're describing and what bash does?
- ake1 9y agoUP in bash swaps the commandline to your previous command, it does not search in your history. either way, please don't move your fingers all the way to your arrow keys for this.
- mindcrime 9y agoI guess I'm still missing something here. In bash you can type the first couple of characters of a command and the PGUP (or whatever key you map for this) and it searches backwards through your history for matching commands. What does fish do differently?
- dflock 9y ago> The feature I use the most is automatic history search by typing part of a command and hitting UP to search the history. This is available in bash/sh by setting this in your ~/.inputrc file: "\e[A": history-search-backward "\e[B": history-search-forward "\e[C": forward-char "\e[D": backward-char
- kevin_thibedeau 9y agoOr just use ctrl-R et al.
- qwerty456127 9y agoIndeed Fish is bloody amazing! I've been using bash for my whole life and now as I've seen Fish I don't want to see any other shell (except some new one that might happen to be made even better) ever. It feels like a quantum leap of the same kind like the switch from ancient printer-oriented Unix shells (that didn't even let you edit the part of the command you've already entered) to bash. As for the scripting language part, however, I have always been wondering why do people use headache languages like bash/sh when we have Python. Might anybody have a clue - I'd appreciate if you could share.
- ufo 9y agoAt its best, invoking commands and pipelines in shell is much more pleasant than doing the same in Python with subprocess and so on. The flipside is that at its worst, shell is a horrible language.
- gtm1260 9y agoTell me if this is just me being a novice but the main dealbreaker for me with Fish was the fact that I had to re setup every thing like PATHS and stuff (tbh i'm not really sure what. There is a long list of weird customizations i've made to support various projects/libraries/etc, copied off stack overflow, that I don't remember) I would try to run commands that work in bash that wouldn't work in Fish. I would get so confused by it all that I just took fish off, as much as i liked it.
- xiaq 9y agoHi, Elvish author here :) I am really glad that you find interesting, but I also wonder which aspects of Elvish do you find awkward? Like Fish, friendly experience out of the box is also one of the goals of Elvish.
- adrianratnapala 9y agoWell I only started reading about Oil just now, but actually it seems to be the exact complement of Fish. That is, Fish intends to be a useful interactive shell and if it also scriptable, that because you need scripting for it to be useful. Fish doesn't make a serious attempt being the language in which system scripts are programmed in. Oil on the other hand is a concerted effort to formalise and rigorously implement the language which existing system scripts are written in. The author believes that is a starting point for a good interactive shell -- but programming comes first.
- 0x445442 9y agoThanks for your work on fish. I've been using it for some time and am very happy with it. What's the process for requesting functions be added to core? I had to write my own to get bash's 'dirs -v' functionality. My solution depends on sed and is no doubt a hack.