5 ms·
Maybe I'm not using my shell to the fullest, but 95% of commands are pretty simple, and not complicated queries. `ls` might have a bajillion flags, but `-lah` g
by guitarbill 3y ago
Maybe I'm not using my shell to the fullest, but 95% of commands are pretty simple, and not complicated queries. `ls` might have a bajillion flags, but `-lah` go a long way. Because fish's autocomplete, I don't have to remember tar flags. That's the killer feature for me.
Along those lines, a quick way to drive adoption could be a huge "how do i do x" or recipes page to Ctrl+F through. If I have to search the internet for how to do x in nushell/fish/etc, I might as well stick to arcane bash - at least you know someone has had the same problem before.
Make it easy for me to get stuff done by showing me how to get stuff done, and I'll grok the shell bit by bit.
I did see https://www.nushell.sh/cookbook/ https://www.nushell.sh/cookbook/ , but it isn't really a searchable reference. There's some setup stuff, other short pages with basic tutorials (?), a link to a repo with example scripts, and for one-liners you are instructed to join a discord. None of these are easily searchable.
- gsuuon 3y agoThere is a 'Coming to Nu' section of the nushell book which covers 'how do I do x' coming from other shells: https://www.nushell.sh/book/coming_from_bash.html https://www.nushell.sh/book/coming_from_bash.html
- westernpopular 3y ago> Along those lines, a quick way to drive adoption could be a huge "how do i do x" or recipes page to Ctrl+F through. If I have to search the internet for how to do x in nushell/fish/etc, I might as well stick to arcane bash - at least you know someone has had the same problem before. https://github.com/tldr-pages/tldr https://github.com/tldr-pages/tldr
- pxc 3y ago> If I have to search the internet for how to do x in nushell/fish/etc, I might as well stick to arcane bash - at least you know someone has had the same problem before. I feel the opposite way: if I don't really know Bash, I'm not throwing away a bunch of my hard-earned knowledge and experience to start again from zero by switching to Fish. It's just a lateral move, and an obvious win if the shell it takes me to is simpler, smaller, or otherwise easier to learn.
- theamk 3y agoAs long as you interact with others' software, the chances are, you will have to read bash in the future. So sure, you can learn fish, but you will likely have to learn some bash (or even sh) anyway. Might as well start from common option.
- wavemode 3y agoTo be fair, that same argument could be made against any new programming language designed to replace an old, firmly entrenched one.
- kuchenbecker 3y agoAnd it is, I use that argument regularly when people want to spin up a new project in a new language when the tooling doesn't support the new language and it's an uphill battle to make it work.
- wavemode 3y agoNo, "lack of good tooling" is a completely different argument. The argument put forth by the comment I replied to is that there is basically no point learning a new language, because to work with existing code you still have to know the old language. Which I think is a massive fallacy. Yes, Kotlin programmers still have to understand Java to be effective. That doesn't make Kotlin useless.
- theamk 3y agoShell is pretty special though - it is a very frequent secondary language. In fact, even Kotlin itself uses bash: https://github.com/JetBrains/kotlin/blob/master/scripts/build-kotlin-maven.sh https://github.com/JetBrains/kotlin/blob/master/scripts/buil... So sure, replace Java with Kotlin, C++ with Rust, Python with go/julia/ruby/whatever.. but bash or sh is here to stay. (And that would be bash or sh, not fish or nushell or something...)
- 3y ago