@lordalveric fish as in the shell? Havent used it in a bit, if it were compatible with bash I probably would have kept using it. It was nice.

Have you tried zsh + oh-my-zsh. Gives you many of the same features (in fact more) and is fairly compatible with bash.

@freemo I looked briefly at zsh, then fish, and fish not only has more features; it's a lot easier to do colors in it., etc. I like the syntax.

Others have suggested zsh, and I may try it out as well at some point, and then compare and contrast.

And I don't need no stinkin' POSIX. :)

@lordalveric well its not so much about posix anything.. You just cant do the same sort of scripting you can in zsh. for example it is trivial in zsh or bash to run a command on all files in a directory recurisvely with a for loop, cant do that in fish.

The colors in oh-my-zsh are automatically there. When you run it for the first time it asks you what settings you want, default includes colors.

oh-my-zsh certainly has way more features than fish though, but fish isnt bad.

@freemo Huh? Of course you can do that in fish!

for s in **/*.rs 22:21:32
echo $s
end
src/bin/imap-filter.rs
src/command/check.rs
src/command/mod.rs
src/command/run.rs
src/dsl.rs
src/lib.rs
src/lua_to_rust_conversion.rs
target/debug/build/mlua-c62aa77988461b9e/out/glue.rs
target/debug/build/proc-macro-nested-523c9cd2489074b8/out/count.rs

@lordalveric its been years, fish appears to have been expanded since I last played with it.

Good to know they added scripting to it at least.

@freemo Yeah, that's one of the things i checked. And that for loop was sweet to type that into fish, as it does automatic indenting as well.

Yes, do check out fish again for the first time.

@freemo I have not looked at zsh too deeply -- yet. But perhaps this may answer some of your questions.

fishshell.com/docs/current/faq

What I like about fish is that I can create new fish commands nicely in .fish files in a special subdirectory. I wrote a script to do this for me in bash, but the way fish does it is a lot cleaner.

It may be that zsh does what you want it to do. For me, going from bash to fish made a lot of sense. Going from zsh to fish??

Well, this blog might help. It convinced me to go with fish over zsh.

medium.com/better-programming/

@lordalveric ill check it out. I really cant think of anything off my head that zsh would need improving.

I can create new zsh commands by just adding *.sh files to ~/.bin so that seems trivial and doable in any shell.

@freemo True, and as I said, I was doing that in Bash. Fish just makes it cleaner. I'm using it everywhere now.

Both fish and zsh have a lot of plugins for sure. It may be a tossup for you, especially if you have spent a lot of time customising zsh to your liking (and I know you have; I know you!)

Nothing is stopping you from using them both. You may find fish better for some things and zsh for others. Just that all the blogs and videos I looked at push fish out ahead for me.

YMMV, etc. :)

@lordalveric well thats the thing, the nice thing about zsh is you dont need to do any customizing. Out of the box it has every feature i would want or hope for.

for example there are thousands of prompts, I can just pick one, no need to customize my own (as I might in a less popular shell with few prompts to select).

Follow

@freemo You don't need to do a lot of customizing in fish, either. Just that I like to customize, and fish makes it dirt easy to do.

Here's another blog.
medium.com/better-programming/

Sign in to participate in the conversation
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.