@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.
@lordalveric What can it do for me zsh doesnt?
@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.
@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).
@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.
https://medium.com/better-programming/fish-vs-zsh-vs-bash-reasons-why-you-need-to-switch-to-fish-4e63a66687eb
@lordalveric cool thanks.
@freemo and such a pain to fix typos in Mastodon. :(
@lordalveric yea there is reason for it, but it sucks that you have to delete and reedit.
@freemo I'm sure it has to do with how it handles federation. Though, it should be able to do that behind the scenes, I would think.
@lordalveric well its more than that. in theory it could be made editable, but the main dev fears that could be exploited.
@freemo anything can be exploited. But there are ways to make it more difficult to do so. Hell, you could even throw Merkle trees at it. :)
@lordalveric there are simple enough ways to do it, I agree. Just needs to keep the edit history and youd be good IMO..
@freemo Well, it is a major accomplishment, overall. I can live with the warts. Hopefully they will be addressed in the future.
@lordalveric yea QOTO already has a lot of edits from mainline. So I might add that feature when i have time one day.
@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. :)