[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology

Name
Options
Comment
Verification
4chan Pass users can bypass this verification. [Learn More] [Login]
File
  • Please read the Rules and FAQ before posting.
  • You may highlight syntax and preserve whitespace by using [code] tags.

08/21/20New boards added: /vrpg/, /vmg/, /vst/ and /vm/
05/04/17New trial board added: /bant/ - International/Random
10/04/16New board for 4chan Pass users: /vip/ - Very Important Posts
[Hide] [Show All]


[Advertise on 4chan]


File: hq720.jpg (32 KB, 686x386)
32 KB
32 KB JPG
>>
>fish doesn't have a posix compliant mode
into the trash it goes
>>
i recently tried nushell because i wanted something closer to bash on windows. holy fuck was that an unpleasant experience. i mean it's still better than cmd and powershell but god damn, the situation on windows is just grim
>>
Nice tier list
Too bad every script ever written uses bash
>>
>>107806547
DistroTube loves fish and Luke Smith thinks it's a joke. That tells me all I need to know.
>>
>>107806804
What does it tell you so we can all know too?
>>
>>107806831
that fish is a joke
>>
>>107806666
Checked and you can literally use bash on native Windows
>>
File: file.png (11 KB, 261x157)
11 KB
11 KB PNG
>not POSIX
>Rust
Useless shit. Just another "rewrite in Rust" crap that doesn't serve any purpose other than ego masturbation. You must be a fucking retard.
>>
>>107806547
What makes it better than zsh?
>>
>>107806729

write a script in perl-ish is no script then?
>>
>>107806666
Nice quads, ubersatan.
>>
>>107806560
>>107807281
never really used fish (not sure whether I even tried), but why the fuck would you need it POSIX compliant? it's not like you're going to run all scripts with it, unless you're seriously autistic and uninstall bash
>>
>>107807346
nobody says that except r*st shills
>>
>>107806560
>posix
irrelevant.
>>
>>107807346
better completions that aren't slow as fuck and are fuzzy without 69 different plugins that fuck with ZLE.
it's just a superior shell. syntax is a bit weird compared to other shells, but it honestly makes more sense, like not needing "do" right after a loop decl.
>>
>>107806729
then invoke those scripts with bash. it doesn't fucking matter for interactive use unless you're a brain dead copy+paste tard.
>>
>>107807281
>Just another "rewrite in Rust" crap
Fish existed well before it ever had a single line of Rust in it, newfag. Fish existed before Rust even was a thing. Holy fuck this board is filled with underage children.
>>
>>107806547
For me it's
>zsh
>dash
>bash
>>
File: this dude is hot.mp4 (993 KB, 1920x1080)
993 KB
993 KB MP4
tinker tranny thread. only shitters use non standard terminals

you use the tools that are everywhere, not the tools you used to select your gender.
>>
>>107806547
fish is cancer, its auto complete is complete aids
>>
>>107807346
better default settings. It takes hours to trick out zsh the point where it is as comfy as fish is by default.
>>
>>107807714
it's fucking brilliant, you haven't used it
>>
>>107806560
big ole 2026
>>
File: 1757097484073585.jpg (27 KB, 252x405)
27 KB
27 KB JPG
>>107806804
>Taking this "man"'s advice
>>
>>107807929
maybe it predicts stuff correctly for normie retards like yourself, but for me it miss predicts constantly and is irritating as fuck
>>
>>107807954
you're the retard if you can't arrange your shit well enough to need some esoteric crap, shitjeet
>>
>>107807968
if I type faster than it takes to find what i need, then its just garbage. objectively true and factual. I'm sure if your typing at 10wpm like yourself it works fine.
>>
>>107807968
frecency is a shit method for sorting commands for people who actually automate shit. If I'm typing a command, it's probably some shit I haven't automated yet, or isn't something that can realistically be automated. Frecency isn't going to know the exact flags I need. At most, it would be marginally faster than tab completing aliases in the circumstance that it actually knows what I'm doing. If i'm specifically re-using commands from my history, I grab them with fzf and change the flags as needed.
>>
>has all possible features for an interactive shell out of the box
Yup, issa gem
>>
>>107807946
kek
>>
>>107808063
If they want me to read their local documentation in the browser they can fuck off. Write a manpage.
>>
>>107807637
ask an llm to make a zsh completion function for x command and feed them the manpage. Completions go in fpath, you don't source them like plugins you fuckskull.
>>
>>107807637
You don't need do in zsh, rtfm.
>>
What happens when you run 'help' in fish without a graphical session.
fish
Welcome to fish, the friendly interactive shell
Type help for instructions on how to use fish
this@milk ~/V/ffmpeg> help
help: Help is being displayed in chromium.
Opening in existing browser session.
help: If no help could be displayed, go to https://fishshell.com/docs/4.3/index.html to view the documentation online.
this@milk ~/V/ffmpeg>
>>
>>107806547
I use Helix as my text editor everywhere, it very strongly influenced my opinion of the rewrite it in Rust movement. I should try this out but I'm still not good enough at and don't know enough about Bash to upgrade my shell yet. Not having manpages is cringe though.
>>
File: osis.jpg (13 KB, 377x332)
13 KB
13 KB JPG
>>107807946
>>
>>107808422
Just learn zsh and bash. By the time you learn what you're doing, you'll transcend the need for fish. It's a crutch for noobs, not a serious tool.
>>
What’s my issue?

I keep cycling between, unable to decide whether to use a specific terminal, shell, code editor, distro. Why can’t I just stick to something? This happened after I moved from the centralized windows platform to GNU/Linux.
>>
>>107806547
Switching from bash to zsh was such a huge improvement like holy shit
Fuck gnutards seriously, zsh literally has a better license and it just works, it should be the default shell on everything
>>
>>107808453
You likely haven't developed a clear or coherent philosophy-of-use.
>>
>>107808438
Are there any more advanced bash features I don't know yet? I know all the basic stuff like redirection, shell expansion and the useful operators on top of knowing most of the GNU readline hotkeys. I learned about process substitution recently, I didn't know that existed before. I recall when I was running the Arch live USB I liked the autocomplete in zsh more.
>>
>>107808396
bash does not have a help html, fish does
I know that you're disingenious on purpose of course, fish is better documented in man pages than bash
>>
>>107808532
idk about interactive bash. I hear it's improved recently, but I don't use it, and basically never have. I write scripts in bash, but I use zsh for completion and better vim mode, interactively.
>>
>>107808563
Who gives a fuck if the documentation is outside of the terminal? Which tui browser is user-friendly? Do they run fish's shitty help page?
>>
You gotta use lynx to read the manpage, guys.
>>
>>107808581
>I know that you're disingenious on purpose of course, fish is better documented in man pages than bash
>>
>>107808614
No, the better documentation is in the html page. There might be more documentation, but I'd much rather read the bash manual. I have a table of contents for manpages in neovim, and that manpage is still useless. See: man zsh, and man zshall
>>
>>107808614
further, compare to bash 'help'
This suggests that while fish might have completions and syntax highlighting, the bash developers have a better fundamental understanding of ux.
>>
>>107808645
>the bash developers have a better fundamental understanding of ux
Laughable honestly, freetards famously are explicitly hostile to the user
At least fish guys had the decency to split the man page into topics instead of a single 5000 line tome explaining every poorly thought legacy decision, clinging onto a dead portable os "standard" and such
>>107808631
Practically never used it so I won't say but I honestly expected them to just have a single document and generate both man and html from that., I don't really care to look though
>>
File: 26.008.18.11.52.scrot.png (108 KB, 960x1042)
108 KB
108 KB PNG
>>107808753
Bash ToC: 272 lines
Fish ToC: 1456 lines
>>
File: 26.008.18.13.17.scrot.png (137 KB, 960x1042)
137 KB
137 KB PNG
>>107808753
How you're greeted with bash help
>>
File: fishman.png (116 KB, 837x1038)
116 KB
116 KB PNG
>>107808309
>20,000 line manpage is not enough for this melanodermite because he can't even read

>>107807701
>you use the tools that are everywhere
I use fish everywhere

>>107807714
>this melanodermite is too dumb to turn off autocomplete

>>107806804
>caring what some non-programmer whose greatest technical achievement is ricing his arch install thinks about tech
>>
>>107808994
>>20,000 line manpage is not enough for this melanodermite because he can't even read
>>107808631
>See: man zsh, and man zshall
For a properly written manpage for a shell.
>>
>>107808994
>>this melanodermite is too dumb to turn off autocomplete

why would i bother with a shell that i have to turn off auto complete ,when I can just uninstall it and use bash which i have used for over 15 year

you got your priorities wrong, you use the tool, the tool doesn't use you.
>>
File: 1767915341545.jpg (41 KB, 540x576)
41 KB
41 KB JPG
fish is nice, for scripts I can just use bash.
If you're a shebangless retarded troglodyte your script is not worth running anyway, it runs whatever the fuck your maintainer felt like linking /bin/sh to, which is dash on debian family and bash on rhel family
>>
>>107807281
The C++ implementation sucked nigger dick, it unironically is better in Rust
>>
>>107809098
You didn't get my point. The problem isn't because Rust is ~le bad. The real problem is because this simply adds nothing new. It's just your old "rewrite in Rust" which only serves the purpose of masturbating the maintainers e-dick.
The only reason people use this crap is because they're Rustfaggots or because the distro ships with it ootb. No sane person would install this this non-compliant shit.

You know what? I think I get it now, you're just shilling your fucking toy project. Please: https://www.4chan.org/advertise
>>
>>107808422
all the fish builtins I've used have had manpages
>>107809292
I saw the discussion on GitHub and the head maintainer said that fish wasn't attracting people to help make it better because roughly nobody wants to write in C++ for fun
so basically nothing happened for a year while fish 4 got written
and now it's in rust
and it's fine and basically the same or better (I think I don't have to restart all running fish sessions when I update it, which is nice)
and it gets more updates and improvements now than when it was still in C++ and not having a Rust rewrite suck up the maintainers' energy
AFAICT, mission accomplished
>>
99.9% of servers and remote whatevers have bash. Fish is an irrelevant meme and zsh is just for retards who want to use bash but with pretty colors
>>
>>107806560
this, its F tier
>>
>>107807637
>better completions that aren't slow as fuck and are fuzzy without 69 different plugins that fuck with ZLE.
skill issue, you dont need bloat-my-zsh for completions
>like not needing "do" right after a loop decl.
I hope you dont actually write scripts in it
>>
>>107808504
>zsh
>it should be the default shell on everything
apple switched from bash to zsh not to long ago
>>
>>107811508
>bash but with pretty colors
and good autocomplete
>>
>>107807701
pits
>>
>>107811556
I dunno about the other guy, but I do. It's fine for writing scripts in.
>>
>>107808994
>>caring what some non-programmer whose greatest technical achievement is ricing his arch install thinks about tech
Why would you need to be a programmer to care about the shell? DT is Reddit and Luke is a right wing schizo. Reddit always has the mediocre premature opinion and schizos have esoteric knowledge (when they're not sperging out about some autistic opinion)
btw I am a programmer
>>
>>107806547
Fish smell and are slimy
>>
>>107806547
bash is preinstalled and does everything I need
>>
>>107811830
>Why would you need to be a programmer to care about the shell?
you don't, but basing your opinions on those of a youtuber is dumb enough, it gets even dumber when he is in no position to give any deeper reasons for it. If Luke Smith had analyzed the code of both and said that fish is fundamentally less secure or something like that, it would at least make sense to give an ear to that opinion.
>>
>>107812665
Nah, that's a genetic fallacy.
>>
>>107812665
I'd trust luke's opinion regarding the general usefulness of a shell for scripting tasks more than his opinion regarding the security of the source code. Shells were made for people, not just developers.
>>
>>107806666
grab msys, git for windows or wsl. windows is unusable without these
>>
Bash works really well and is licensed under the GPL.
>>
>>107806547
S-tier is BBC_basic/micro_python
>>
>>107806547
>web server to configure the shell
holy bloated webshittery
>>
>>107808532
process substitution is incredibly powerful. combine it with tee and you can create huge pipelines instead of functions which has properties you may need for certain workloads.
parameter substitutions like :? and :-, all the switch fallthroughs and various string manipulation tricks let you parse arguments hassle free. use while read < <() and mapfile for looping on input.
>>
>>107811579
Yes, that's exactly why I thought there is no reason you couldn't do that on Linux too.
I also want to get it to work on Windows but it's too much trouble so I haven't messed around with it yet.
>>
>>107806560
who cares bro
>>107806547
for interactive shell yes fish is #1. every other shell i tried either lacks features or forces you into tinker tranny mode where in fish its optional
>>
File: 1765967634236195.jpg (249 KB, 2473x1803)
249 KB
249 KB JPG
>>107808396
looks like this for me
>>
How do I get autosuggestions to work in fish?

E.g when typing ”man get” to show suggestions for manpages containing ”get” in them? I find that TAB works, but it doesn’t auto suggest upon typing alone.
>>
>>107815379
That's a graphical session, retard.
>>
>>107815379
Drop to a tty and do the same thing.
>>
>>107806547
bash for cli
sh for scripts
there is not a single reason to use anything else.
>>
>>107815736
no its a simple help page with a menu, a search, all very straightforward
>>107815415
the main 3 things i use it for are
>file browsing (like if you start wring an address and press tab you can browse the folder and select files/folders)
>autocomplete past commands + search past commands with ctrl+r
>fish_update_completions which parses man pages on the system and generates completions
>>
>>107815826
No, that's a webpage.
>>
>>107815826
I even rebooted and ran the help from the shell without X even being started in another login session.
this@hell ~> help
help: Help is being displayed in chromium.
[1350:1350:0109/130503.220151:ERROR:ui/ozone/platform/x11/ozone_platform_x11.cc:259] Missing X server or $DISPLAY
[1350:1350:0109/130503.220208:ERROR:ui/aura/env.cc:257] The platform failed to initialize. Exiting.
help: If no help could be displayed, go to https://fishshell.com/docs/4.3/index.html to view the documentation online.

The fact that their fallback link points to the internet instead of recommending you to browse the local documentation with an appropriate tool should be an obvious problem.
>>
>>107815847
>>107815913
works on my machine
>>
>>107815968
No, it doesn't, unless you have some extra special kernel buffer that runs a browser.
>>
>>107815826
>the main 3 things i use it for are
I have all of that, except, it doesn’t automatically show me auto preview suggestions for ls, cd, or anything in general unless I do TAB. Zsh does this with plugins without having to press TAB.
>>
File: 1738784502050357.jpg (8 KB, 788x203)
8 KB
8 KB JPG
>>107816108
idk works for me ive never used this option and it autocompletes for me. maybe you need to run fish_update_completions
>>
>>107815415
How did you install fish?
I get completions with the fish installed from Homebrew but I don't think I got builtin completions from the one supplied by Debian Stable
>>
>>107806547
nushell for me. it's fun to use.
>>
>>107806547
>>107806729
It goes like this:
> B) bash
> A) zsh
> S) fish
> ...
> ...
> ...
> S++++) tcl
>>
BBC_basic/micro_python
both less than 64k bytes
BBC_basic include in VIM
>>
>>107819706
micro_python in the list only cose zoomers
it have memory consuming source codes and only external text editor
>>
for "just users" - use mc/far2l
>>
>>107819072
I've been waiting for someone to explain this tickle bullshit.



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.