r/Clojure • • Nov 01 '17

Closh: bash + ClojureScript shell scripting!

https://github.com/dundalek/closh/blob/master/doc/guide.md#examples
75 Upvotes

15 comments sorted by

View all comments

7

u/kloudex Nov 01 '17

Author 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?

1

u/LettuceKills Nov 02 '17

The "replace syntax with commands" thinking of fish is what I like the most about it, but that is baked into closh by it being a LISP. Another really great thing in fish is the auto-completion (triggered by the tab key) with the highlight-selection and columned options.

1

u/WalterGR Nov 02 '17

The "replace syntax with commands" thinking of fish

Could you give an example of this? I'm not a fish user but I'm curious about it.

1

u/LettuceKills Nov 03 '17 edited Nov 03 '17

For example, instead of using the special = operator to set variables the set command is used. So PATH=/usr/bin in bash is equivalent to set PATH /usr/bin in fish, where set is just another command.