Earlier quoted context omitted.
I'm a big fan of fish, particularly with omf. Though honestly it has some performance issues, particularly if your prompt line calls something that could take some time to resolve (such as git status or a du).
I've been having big performance issues with tab completion. Also, I just don't find the language to be that much better than bash, and writing in fish means i can't share my shell scripts with any coworkers. I've been writing everything in bash lately even though i still use fish.
Closh – Bash-like shell based on Clojure
111–120 of 138 posts
Re: Closh – Bash-like shell based on Clojure
#112Nice, I've been waiting for a good modern shell to replace ZSH. Fish just wasn't enough of an improvement for me to abandon ZSH. This is an area where most open-source developers have avoided, as it's a "solved" problem, but it really isn't. I'm currently waiting on Elvish [1] to mature. It's written in Go [2], but they're developing a new language on top of it for shell scripting, which I tried for a week. It's a ni…
If you're looking to contribute to something, the devs are really helpful and open to stuff (I was able to hack together an autopair feature pretty quickly and they took it)
Re: Closh – Bash-like shell based on Clojure
#113Call me old. But I want my shell to be a tight binary, preferably distributed (at some point) by major distros. This needs freakin' Node.js. I'm more looking in the Rust/Haskell/OCaml direction for a hip bash/zsh replacement.
This needs freakin' Node.js. Yeah, that's an old sentiment. I used to echo the same thing, but it's worth coming to terms with the fact that node is a pretty good platform to build on.
Lol.
Re: Closh – Bash-like shell based on Clojure
#114Is there a bash-like shell based on Python? I would love something like that.
Good overview of its power here: https://jakevdp.github.io/PythonDataScienceHandbook/01.00-ip...
Re: Closh – Bash-like shell based on Clojure
#115Re: Closh – Bash-like shell based on Clojure
#116Author here, thanks for posting. The project is still very early in the development and there is a lot of work to be done to make it ready for daily use. I would appreciate any feedback. What are the less known features of existing shells you really like? What things would you change about existing shells if you could?
Ability to browse documentation of Clojure functions at the shell might help. Currently, man pages can be accessed for utilities. But quickly browsing doc of, say, Clojure re-find will add value, although features from stage 2 and 3 of roadmap are more important/show-stoppers.
Re: Closh – Bash-like shell based on Clojure
#117Earlier quoted context omitted.
This needs freakin' Node.js. Yeah, that's an old sentiment. I used to echo the same thing, but it's worth coming to terms with the fact that node is a pretty good platform to build on.
>node is a pretty good platform to build on. Lol.
Re: Closh – Bash-like shell based on Clojure
#118Earlier quoted context omitted.
> This is an area where most open-source developers have avoided, as it's a "solved" problem, but it really isn't. I've found the complete opposite to be the case. This is one area where there are hundreds of different shells out there as it seems a "cool" thing to try since it's basically just an extension of writing your own language. Most never go beyond pet projects though. If you're curious about Go shells, I'm…
> This is one area where there are hundreds of different shells out there... Most never go beyond pet projects though. I have had the same experience. For every scripting/interpreted language out there, there is at least one person who thinks "ooh, wouldn't it be neat if I could use this as a shell?" or, almost as often, "to program my text editor?" Soon they realize that interactive programs like shells and text edi…
Re: Closh – Bash-like shell based on Clojure
#119Earlier quoted context omitted.
It'd better be.
I don't think it is. In the words of Bill Clinton: "it's the economy, silly". Economic/social factors trump technical aspects 99% of the time, the 1% being technical revolutions. And Java or C# or Lisp being better than Javascript doesn't fall into the "revolution" category. Ergo Javascript everywhere :)
Re: Closh – Bash-like shell based on Clojure
#120Earlier quoted context omitted.
> I'm not sure how this would work with Python or JS. .method().method()?
I think the concept of piping is actually more similar to function(function()) than .method().method(), because you're not limited to the scope of your initial object's methods. And the truth is that functionB(functionA()) reads much worse than functionA | functionB , so yeah I agree that this is something that shell scripting languages got right.
(-> function
function
function)
An interesting take on that is a library called swiss arrows that lets you do (- (function arg1 )
(function arg2)
(function arg1 arg2 )
Using the to indicate where the result of calling one shall be threaded into the next.