Fish Is A Modern Shell For The Sophisticated User

  Рет қаралды 214,583

DistroTube

DistroTube

Күн бұрын

Пікірлер: 432
@faerryn8708
@faerryn8708 4 жыл бұрын
Fish is good for the brain, lots of Omega-3 acids
@CPSPD
@CPSPD 4 жыл бұрын
heavy metal poisoning on the other hand isn't good for the brain. also killing sentient things for a fatty acid is a big doodoo
@zyansheep
@zyansheep 4 жыл бұрын
@@CPSPD yeah, but you wouldn't usually eat the bass, you would slap it!
@KishoreG2396
@KishoreG2396 3 жыл бұрын
@@zyansheep slapp
@helkafen100
@helkafen100 3 жыл бұрын
The omega-3 come from the seaweed they eat. We can eat that directly for a more sustainable diet :)
@ahmedifhaam7266
@ahmedifhaam7266 3 жыл бұрын
@@helkafen100 I din't know tuna or any fish tuna preys on, eats seaweed. Heh! Or, does it?! XD
@MartinWimpress
@MartinWimpress 4 жыл бұрын
I've been using Fish for years, it is ace! ♥ Pro tip! Keep your fish history backed up or in a dot file manager. My Fish history is many years old now and Fish is practically telepathic 🧠 as a result.
@DistroTube
@DistroTube 4 жыл бұрын
Oh, I should definitely do that!
@JeremyCaron
@JeremyCaron 4 жыл бұрын
Good call!!
@brainplot
@brainplot 4 жыл бұрын
Be careful though. Sometimes I type sensitive data in my shell and forget to add a space in front of the command to prevent it from being logged to the history. You don't want to have your password up on GitHub.
@tambow44
@tambow44 4 жыл бұрын
Gianluca Recchia “man history” - you can delete lines on the fly (or rather, stop them being written at the end of your session)
@eddyecho
@eddyecho 4 жыл бұрын
@@brainplot git-crypt and gitlab private repo = rest easier
@fahimzahir2085
@fahimzahir2085 4 жыл бұрын
@DistroTube I disliked Linux for the longest time due to some unfriendly individuals in the community, the steep learning curve, limited software, and trade-offs. But over the years of watching your videos..I have slowly seen how positive the community can be through your videos and how positive and amazing you are yourself. I installed Ubuntu 20.04 and have labored through some of the pains of setting things up but I have come out with a better grasp and some love for how Linux operates compared to windows. There are some things it does genuinely better. Im really happy I subscribed to you. You are the best of the best in the Linux community and to me at least a prominent face of the community. You should add a contribution button to your youtube so I can thank you :)
@Yuriyalloween
@Yuriyalloween 4 жыл бұрын
This is not discord
@fahimzahir2085
@fahimzahir2085 4 жыл бұрын
@@Yuriyalloween This is sparta
@username-du2er
@username-du2er 3 жыл бұрын
i know it's been a while, but here's a welcome to linux to the past you
@dejangegic
@dejangegic 3 жыл бұрын
Be careful! That's how it starts, Ubuntu VM just to play around at first and before you know it you're talking to random strangers how amazing Arch is.
@yannrampitsch6678
@yannrampitsch6678 3 жыл бұрын
@@dejangegic this sounds all to famillair, lol ahem arch user btw :P
@atimholt
@atimholt 4 жыл бұрын
I'm imagining a compatibility layer project being called “bish”. Or “fash”.
@freshfrij0les
@freshfrij0les 4 жыл бұрын
Probably don't want to call it fash lmao
@xijinpingpong4426
@xijinpingpong4426 4 жыл бұрын
bish the fash
@jonassteinberg3779
@jonassteinberg3779 4 жыл бұрын
@@xijinpingpong4426 on site
@YouKnowMeDuh
@YouKnowMeDuh 4 жыл бұрын
Bish for obvious reasons :)
@karpfenboy
@karpfenboy 4 жыл бұрын
it exists, but is called bass
@timonpasslick
@timonpasslick 4 жыл бұрын
Abbreviations are often a good alternative to aliases and they're a unique fish feature. When you press space after typing out an abbreviation, it gets expanded.
@joaopedrodeamorimpaula8965
@joaopedrodeamorimpaula8965 4 жыл бұрын
they are not a unique fish feature, i use it on zsh without any plugins
@timonpasslick
@timonpasslick 4 жыл бұрын
@@joaopedrodeamorimpaula8965 Also the abbr command?
@joaopedrodeamorimpaula8965
@joaopedrodeamorimpaula8965 4 жыл бұрын
@@timonpasslick not really, i just add them manually.
@joaopedrodeamorimpaula8965
@joaopedrodeamorimpaula8965 4 жыл бұрын
fish is an amazing shell indeed, but the fact that it is not posix compliant and the little things it does different annoy me. it would be a pretty significant workflow change to adapt to it, since i've been using posix shells for 5 years, in exchange for some (in my view) minor improvements on features i already have.
@timonpasslick
@timonpasslick 4 жыл бұрын
@@joaopedrodeamorimpaula8965 I'm new to Linux so fish is best for me but that makes sense.
@aedd3307
@aedd3307 4 жыл бұрын
From the S shell's github page "I suspected that since bash syntax is very complex, the parser is going to be a lot of complicated code too. So I did some line counts of various shells to see what the situation is like: name. ` ` ` ` ` ` `.c .h gnu bash: 138227,` 13746 zsh: ` ` ` ` ` ` ` 135589,` 5698 shivers scsh: 118475 (scheme) templeos: ` ` ` 119115 mirbsd mksh: `29223,` 2562 debian dash: ` 16503,` 2084 freebsd sh: ` ` 15453,` 1622 es shell: ` ` ` ` `` 9017,` ` 1436 plan9 rc: ` ` ` ` ` 5989,` ` `327 execline: ` ` ` ` ` 3794,` ` ` 117 (the " ` "s are there because youtube butchers multiple spaces) The line count for TempleOS isn't just counting its shell. It's the linecount of the entire system: The operating system kernel, the compiler, the shell, the drawing program, the graphical user interface, the 3D flight simulator. Bash, zsh and scsh have more code in them than an entire operating system." The mainstream shells are all incredibly bloated, and the fact theat bash and zsh have more lines of code than an entire operating system is also very funny, although i generally don't care about the bloat meme too much, this is just ridiculous, how can a shell have more lines of code than a 3D flight simulator, drawing program, kernel, and another shell? i recommend sticking to the more lightweight shell and extending it yourself.
@RonnieNissan
@RonnieNissan 4 жыл бұрын
Have been using fish for one month now, and it is amazing, the abbreviations and flag completion is just so great. And it's vim mode rocks.
@adamu6941
@adamu6941 3 жыл бұрын
I learned a lot on my archlinux just by watching videos from your channel for a few days, like this one I just ran, I love it! thank you so much :)
@mikhaeldito
@mikhaeldito 4 жыл бұрын
Your videos actually encourage me to use Linux more and more. Currently, I am using Ubuntu in WSL right now and really loving the experience so far. Hopefully, I can make the switch in the future.
@vikingthedude
@vikingthedude Жыл бұрын
You alive?
@TheExard3k
@TheExard3k 3 жыл бұрын
I was sold on fish 5sec after I used it the first time. People say command lines are old-school, but fish proves that they are nextgen productivy tools.
@golevka
@golevka 4 жыл бұрын
Hey @DistroTube, thank you for the videos. I'm transitioning from a lifetime of Windows usage to a desktop with Pop Os! and laptop with Manjaro XFCE. Hopefully this is the start of a career pivot from the renewable energy industry to systems administration and some hobby development. Your style of granular narration is teaching me an enormous amount of "soft skills" for general Linux usage. I may not know enough yet to know what shell is right for me on my default unconfigured distros, but watching this video taught me that I can cancel a terminal command with control + C. I legit didn't even know that until just now. Your content is very ADHD + chronic stoner friendly, I'm learning a ton. Looking forward to becoming a patron!
@Phydoux2112
@Phydoux2112 4 жыл бұрын
I just started using fish (I know, I'm a little behind) but it's nice to be able to go through the archives and find stuff like this. Who knows if it will be accurate in 2 years or not. We won't know that until 2022 I suppose. Thanks DT!
@ScoldAudits
@ScoldAudits Жыл бұрын
It's 2023....it's not accurate anymore.
@samuelcollins6644
@samuelcollins6644 4 жыл бұрын
btw you don't need your `alias ..='cd ..'` since that functionality is built into fish. In fact, if you type in any directory path, it'll cd straight to it, e.g. `~`, `/etc` or `path/to/dir/` (relative paths require a slash at the end) Also, you can source bash scripts from within fish as if they were native to fish with bass github.com/edc/bass
@DistroTube
@DistroTube 4 жыл бұрын
Nice. In fact, just typing ".." without the cd works! :D
@balmar3
@balmar3 4 жыл бұрын
Yes, it reads my mind. Have you noticed that the auto-suggestion (in grey, comes up with right arrow) for many commands depends on which dir you are in? If I don't see the familiar stuff there I know that I forgot to change dir. :-)
@MartinsTalbergs
@MartinsTalbergs 4 жыл бұрын
It does! Also, Alt+ and Alt+ to intsantly change PWD is awesome time travel! >
@TheRealFaceyNeck
@TheRealFaceyNeck 4 жыл бұрын
Took me a very long time to consider using fish, as I didn't know enough about Linux in general. But then I found bass: wiki.gentoo.org/wiki/Fish#bass bass "...executes a given command in bash and then transfers updated environment variables back into fish." 😎 And yeah I know; I linked to the Gentoo Wiki. Don't be scared. Sure, I know most people aren't a level-IV-Linux-Neckbeard like me, but even if you're running Linux Mint, I assure you that with nothing more than manpages, Arch and Gentoo wikis, you'll have all the information you need. Damn-well near all the Linux information in existence.
@killertigergaming6762
@killertigergaming6762 2 жыл бұрын
This comment felt so cringey
@franciskapsowe9183
@franciskapsowe9183 4 жыл бұрын
Texas Genius. No doubt you're the BEST Linux channel here on KZbin. Today I just watched so many of your videos, I will watch all your videos. Thumbs UP
@BosonCollider
@BosonCollider Жыл бұрын
Another advantage of fish is that the grammar is decidable (and in fact it is LL(1) ), unlike POSIX shell which is undecidable (with aliases being the most common cause), and implemented slightly differently by each shell in practice when aliases and interpolation happens. It is actually possible for a mere mortal to sit down and write their own parser for it In particular, fish commands deal with arrays of strings instead of interpolating whitespace separated strings everywhere, and there is no text-based alias, only function definitions that are good enough so that defining a text-based alias is not necessary
@nycex267
@nycex267 4 жыл бұрын
There are two things I really didn't like about fish when I was using it (now I use zsh): 1. Renaming $() to (). With that, they removed the possibility of the posix () to e.g. pipe the output of multiple commands into one, e.g. `(cat test.txt; journalctl -xe | grep "123") | lolcat` (there are more complex examples where you can't replace it easily with process substitution but I wanted to make something simple) Also $() does make more sense to me, because the functionality is very similar to $variable, where it also kind of parses the output inline instead of writing it to stdout like () does. 2. Having a web browser builtin. Yeah, this may be useful for many people, but I don't want it and it's a shell running a useless web server on my computer. If it was something separate that just edits the fish config files, I would be totally fine with it. I had some other complaints, but it's been like a year or so since I switched to zsh and I don't really know everything anymore.
@franzxaver1672
@franzxaver1672 4 жыл бұрын
I agree, I also didn't like the change to `end`, I think it's pretty arbitary, you can just remember one thing (spelling the initialization keyword backwards) in posix sh and it's not really simpler to use end then.
@danielfrench8528
@danielfrench8528 4 жыл бұрын
I would add the setting variables in fish is horrible.
@talideon
@talideon 4 жыл бұрын
It doesn't have a webserver built in. What `fish_config` does is run a small script written in Python. Assuming you're running a Debian derivative like Ubuntu, you can find the script at /usr/share/fish/tools/web_config/webconfig.py.
@nycex267
@nycex267 4 жыл бұрын
@@talideon Oh well, you are right, it's not really built in, I confused it with cups where it is builtin.
@ghoom
@ghoom 4 жыл бұрын
2:37 Oh no, FISH has dominated his life!!
@maxarendorff6521
@maxarendorff6521 4 жыл бұрын
Fish is great. I've been using it for years. I couldn't use any other shell at this point.
@klauseverwalkingdev
@klauseverwalkingdev 4 жыл бұрын
Wow! Finally a sane Fish Shell review on ages! I mean, the thing which we see most out there is heavy criticism on Fish, usually cause it has a different syntax and "Bash is present in every Linux distro blah-blah-blah". People need to learn to be more impartial and make it very clear when they are putting out PERSONAL OPINIONS. When we do that, we're open to experience new things, leaving useless preciousness behind. And you did that. Many thanks for your channel being the source of many experimentations I've been doing in my Linux environment. Thanks again :)
4 жыл бұрын
You can do anything from this video in zsh (though it will require a lot of configuring, especially if you're like me and refuse to use Oh My Zsh because it's bloat), with the added benefit that zsh is POSIX compliant and you can use it for scripting.
@gaweyn
@gaweyn 4 жыл бұрын
how to add the listing of available flags to zsh? as in 2:03 - nevermind, found it, but it does not look half as nice as in fish
4 жыл бұрын
@X GNU Bio Do you know what POSIX compliant means? It means that it runs any script that is written according to the POSIX standard. Zsh will run any such script. Bash also. But Fish won't. Of course, both bash and zsh have features that go beyond the POSIX standard. But that is only an added bonus, not an problem (because the entire POSIX standard is covered). However, on fish you can run only scripts written for fish, and nothing else. On zsh and bash you can run any POSIX compliant script, plus the scripts written specifically for bash and zsh, respectively.
4 жыл бұрын
​@@gaweyn On Arch Linux install the package "zsh-completions" and add the following to your .zshrc: zstyle :compinstall filename '/home/yourusername/.zshrc' autoload -Uz compinit zstyle ':completion:*' menu select zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' zstyle ':completion:*' rehash true zmodload zsh/complist compinit For more details, how to customise colours etc, RTFM. You can make it look as good as on fish. Find a good example of a .zshrc online and just steal from it. Or use Oh-My-Zsh, if you're a total nôôb.
@LaurenZou
@LaurenZou 4 жыл бұрын
Have you tried zplug? It's the new hotness.
4 жыл бұрын
@@LaurenZou nope. I'll look into it, but I'm fairly happy with my manual config.
@ArtemPyatkovsky
@ArtemPyatkovsky 3 жыл бұрын
I love fish for interactive auto-completions and other sophisticated stuff, but so far I have 2 annoying things with it: 1. (slightly annoying) Delete key deletes characters to the end of line and then begins to delete backwards, like backspace. 2. (very annoying) There is some issue with re-rendering active line. It's a little bit hard to describe. If you just type some command, even a long one with parameters, or navigate through history and run it as is, everything works fine; but if you pull a line from history and star editing it, use auto-completion or switching between normal and insert modes, it will mess up the current command line. Does anyone had those issues and found any solution?
@mecrumbly429___4
@mecrumbly429___4 4 жыл бұрын
I’ve used fish for as long as I can remember using Linux. Thanks for reviewing this shell.
@DUANEYAISER
@DUANEYAISER 4 жыл бұрын
I loved Fish! But many of its commands were so different than others, I decided to lean in to zsh with “oh my zsh” instead.
@williambrasky3891
@williambrasky3891 4 жыл бұрын
Agreed I use the same, but fish is sexy af. I'm so tempted.
@konstantink07
@konstantink07 2 жыл бұрын
Better use zplug, it's far less bloated
@typecrafted
@typecrafted Жыл бұрын
@@konstantink07 better use zinit, it's even less bloated
@CyReVolt
@CyReVolt 4 жыл бұрын
It's not just for Linux and macOS (Darwin) btw. I know it from GhostBSD, a FreeBSD distro. And it works on many other OSs, such as Illumos :)
@darienclose5063
@darienclose5063 4 жыл бұрын
this is a completely extreme level that i really want to be able to use, but I'm such a noob, the idea of using a git as your origin just completely blew my mind, im over here trying to consolidate my storage and keep backups and thinking about portable install, and its like, ultimate portable system would obviously be keeping the basic stuff network attached, I knew there was a lot to learn about linux but jeez, this rabbit hole goes all the way down to the moon
@JeremyCaron
@JeremyCaron 4 жыл бұрын
YES DT! I've been on fish for almost a year and its SICK
@greyman1104
@greyman1104 4 жыл бұрын
Will never replace Zsh with Oh My Zsh.
@semilin
@semilin 4 жыл бұрын
Fish has Oh My Fish which is pretty darn similar.
@greyman1104
@greyman1104 4 жыл бұрын
@@semilin I've seen it, yeah.
@loreleipenn
@loreleipenn 4 жыл бұрын
I am a user of Zsh and Oh my Zsh and can understand that as well. You just get addicted to it...
@clocked0
@clocked0 4 жыл бұрын
@Him God I hope so
@mihailuca3759
@mihailuca3759 4 жыл бұрын
I tried fish and I also like Zsh with Oh My Zsh more.
@indigo0086
@indigo0086 4 жыл бұрын
Was anyone else expecting "some of the coloring going on with fish fish fish fish fish fish fish..."
@j1d7s
@j1d7s 4 жыл бұрын
I also used fish and was happy with it for interactive use, but it is not compatible with bash, e.g. interpolation works differently. Therefore one needs to make sure it is only used for interactive use, which is a pain. I switched to zsh / oh-my-zsh and am really happy with the choice.
@banguard856
@banguard856 2 жыл бұрын
Try oh my fish
@konstantink07
@konstantink07 2 жыл бұрын
There's really no need to use oh-my-zsh. It's bloated af. Just put the plugins in some folder and source them from .zshrc. Same goes for themes. And you can just put all the aliases you need in one file and source that as well. And they are also other less bloated plugin managers for zsh, e. g. zplug
@j1d7s
@j1d7s 2 жыл бұрын
@@konstantink07 Thanks for the suggestion, I never thought about optimizing this and was quite happy with my setup. I will look into zplug, too.
@beardedgeek973
@beardedgeek973 4 жыл бұрын
Been using Fish for about a year. Not changing anytime soon!
@AaronStarkLinux
@AaronStarkLinux 4 жыл бұрын
I have everything I need in Zsh, I don't see differences at all.
@csbnikhil
@csbnikhil 4 жыл бұрын
Oh My Zsh! Yes.
@AaronStarkLinux
@AaronStarkLinux 4 жыл бұрын
@@csbnikhil I don't use Oh My Zsh. Everything manually.
@csbnikhil
@csbnikhil 4 жыл бұрын
@@AaronStarkLinux I'd like to reach that Zen Mode someday.
@AaronStarkLinux
@AaronStarkLinux 4 жыл бұрын
@@csbnikhil Everything you need is in the documentation.
@sohn7767
@sohn7767 4 жыл бұрын
moxy weird cpu buy okay
@HarshSharma-uf8jc
@HarshSharma-uf8jc 4 жыл бұрын
Exploring the linux universe with DistroTube👀
@DejaimeNeto
@DejaimeNeto 4 жыл бұрын
DistroTube: because my home directory is a git repository Me: surprised pikachu
@dagadbm
@dagadbm 4 жыл бұрын
fish has one problem: most of the things on the web work mostly for sh/bash/zsh so fish will always be a niche case. I started using fish and just changed to oh my zsh and i dont miss it at all. you should too.
@DUANEYAISER
@DUANEYAISER 4 жыл бұрын
Exactly what I did! In isolation, Fish was great. But I'm not always just on my machine. I want to get used to the same commands that would likely work everywhere. That's part of why we love using the terminal in the first place. :-)
@RagTagPwner
@RagTagPwner 2 жыл бұрын
WHAT? A web browser config tool built-in?? Beautiful!
@bayrockdev
@bayrockdev Жыл бұрын
Fish has a web configuration for previewing and configuring themes and such.
@David-mw8vr
@David-mw8vr 4 жыл бұрын
Zsh is my favorite. Auto suggestions is SO helpful
@KarlMySuitcase
@KarlMySuitcase 4 жыл бұрын
loving zsh with syntax highlighting currently
@Fetusgi
@Fetusgi 4 жыл бұрын
There's a faster and a bit more advanced highlighting compared to the standard for zsh out there. Worth checking out: github.com/zdharma/fast-syntax-highlighting
@kwam6919
@kwam6919 4 жыл бұрын
Fish really isn’t good for scripting. It uses a lot of non POSIX features and commands. 90% of the stuff you can do with fish you can also do in a more POSIX compliant shell like zsh or bash.
@xthebumpx
@xthebumpx 4 жыл бұрын
It's very good for scripting. It's not good for portable scripts.
@franchufranchu119
@franchufranchu119 4 жыл бұрын
If you want scripting use Python.
@SimGunther
@SimGunther 4 жыл бұрын
Jonathan Blow's shell: finally a shell that won't break my computer LOL
@douglaidlaw740
@douglaidlaw740 3 жыл бұрын
I was expecting that the command for color would actually do what it says, instead of standard white-on-black.
@witoldhodys4453
@witoldhodys4453 Ай бұрын
I personally prefer zsh, as I like to configure things myself and be able to customize it, as opposed to having a fancy sell like fish out of the box
@marlls1989
@marlls1989 4 жыл бұрын
I was using up to the day I had to sftp from one machine into the other and fish didn’t detect it wasn’t an interactive session. It displayed a long welcome message crashing sftp. Went back to zsh
@walkerneo
@walkerneo 2 жыл бұрын
Why is neovim your default editor instead of emacs, which you've done some videos on?
@AtomToast
@AtomToast 4 жыл бұрын
Have a look at kakoune. It's kind of like fish for Vim. In the sense that it takes the essence of what it does and reimagines what it does, having a lot saner defaults and good features. I recommend just reading the "why kakoune" page on their site to get an impression of how it compares to vim and what it does.
@danielberger2564
@danielberger2564 4 жыл бұрын
Well I think that the stuff about fish is not really sane, especially $(), which looks to me as they didn't really understand why it's $() and not ().
@harryfabian
@harryfabian 3 жыл бұрын
I love your manner of speech. Idk if it’s an accent or that combined with your idiosyncratic speech characteristics. Where are you from?
@jesseleite
@jesseleite 4 жыл бұрын
Hey what are you using to generate those pacman / space invaders / etc. logins?
@TheBettinx96
@TheBettinx96 4 жыл бұрын
I finally found it, it's on his GitLab: gitlab.com/dwt1/shell-color-scripts
@johnnyblack4261
@johnnyblack4261 4 жыл бұрын
Hi DistroTube, I really liked your video :) I have been using Fish and I was not aware of omf. I installed omf and I installed the theme called sashimi as I personally think it looks the best. However there are two things that I wish to change about it. 1) if I am in lets just say ~/Desktop/testing, it would show _testing_ only. I wish it would show the file file path like it does on bash. Is there a way to change this? 2) In your video we can see if you are in insert mode or normal mode, for some reason that doesn't show on my fish shell, what did you do to configure this?
@antoinemoran3537
@antoinemoran3537 4 жыл бұрын
Hey, just wanted to know. Do you run fish as your default terminal or only as your interactive terminal?
@zeppelin0110
@zeppelin0110 4 жыл бұрын
Fish is pretty great, but Oh-my-Zsh stole all the goodies from Fish. At this point, there is just no reason to not use Zsh. It's almost 100% compatible with bash, but with all the bling of Fish.
@patrykgronkiewicz924
@patrykgronkiewicz924 4 жыл бұрын
You don't need this sluggish omz, you can install any plugin you want, eg. with antibody
@maxarendorff6521
@maxarendorff6521 4 жыл бұрын
Fish is still better IMO, even if you install all the plugins inspired by Fish.
@zeppelin0110
@zeppelin0110 4 жыл бұрын
@@maxarendorff6521 But now you can't easily run most commands in your prompt that you might grab from the internet. You have to modify it to be compatible every time.
@zeppelin0110
@zeppelin0110 4 жыл бұрын
@@patrykgronkiewicz924 I haven't noticed the sluggishness. OMZ is just damn convenient. I've had to do almost no configuring. I just enabled a few key plugins that interested me and have been very happy with it.
@zeppelin0110
@zeppelin0110 4 жыл бұрын
@@patrykgronkiewicz924 Looks like antibody can replace even plugin managers like the Tmux Plugin manager - which I never installed because I didn't want yet another plugin manager. I'll put this on my radar, though.
@kmfco
@kmfco 4 жыл бұрын
Switched yesterday. From zsh. Really amazing.
@busyrand
@busyrand Жыл бұрын
Brilliant! This is exactly the type of thing I've been looking for...
@henninb
@henninb 4 жыл бұрын
I like fish, the only must have preventing me from using fish full time is fish is not posix compliant.
@nobytes2
@nobytes2 4 жыл бұрын
Is there a list of things that are not posix compliant?
@henninb
@henninb 4 жыл бұрын
@@nobytes2this stackoverflow will help describe what I was referring to. stackoverflow.com/questions/48732986/why-how-fish-does-not-support-posix
@Gregory-F
@Gregory-F 4 жыл бұрын
I love fish. I like to ask if you don't mind: why using aliases over abbreviations?
@JonBaldie
@JonBaldie 2 жыл бұрын
Been using fish since 2015 when I got my first developer job 🙂 I love it!
@ltxr9973
@ltxr9973 4 жыл бұрын
Fish is great. But some things just don't work in it, I guess it has ventured just too far away from the posix standard to be compatible with everything. I'll stick with zsh because otherwise I would have to use two different shells, fish and zsh/bash for stuff that doesn't work in fish.
@Gabifuertes
@Gabifuertes 4 жыл бұрын
This!
@aedd3307
@aedd3307 4 жыл бұрын
That's what most fish user do, they stick with fish for interactive use and a posix-compliant shell for scripts, fish is made for interactive use and not scripts, it hasn't ventured away from being posix compliant, it doesn't want to be posix compliant, you can check it all in the fish website.
@danielfrench8528
@danielfrench8528 4 жыл бұрын
@@aedd3307 Well then it didn't reach its goal to make things simpler, if you need to remember to use () in fish and $() in scripting, or set VAR 123 in fish, VAR=123 in scripting. That just doesn't make sense and it makes things more complicated.
@sethwilliamson
@sethwilliamson 4 жыл бұрын
I agree about reserving Fish for interactive use. I would personally _never_ script in it. I've always approached ZSH this way too. I like to keep scripts as portable as I can, so SH if it can be done in SH, BASH syntax if I need it, and I usually switch to Python if it gets to be too ugly/impossible in BASH.
@gassug2
@gassug2 3 жыл бұрын
only thing keeping me from switching is that "sudo !!" doesnt work. im sure there's a way to implement it though
@dannythomsen
@dannythomsen 4 жыл бұрын
If you are using zsh and like the syntax highlighting in fish, there is a pretty cool plugin called zsh-syntax-highlighting
@gizzmoguy.
@gizzmoguy. 4 жыл бұрын
Danny Foldager Thomsen Very nice plugin.
@room641A
@room641A 4 жыл бұрын
is it as good?
@dannythomsen
@dannythomsen 4 жыл бұрын
@@room641A I haven been using fish that much too really tell difference. But I like it.
@room641A
@room641A 4 жыл бұрын
@@dannythomsen allright tanks ! il move to zsh and use that plugin
@VigneshBalasubramaniam
@VigneshBalasubramaniam 4 жыл бұрын
Fish isn't POSIX compliant, which becomes annoying very quickly. This is why after finding fish, I switch to zsh along with plugins (installed via antibody) to get the main features of fish.
@braelinmichelus
@braelinmichelus 4 жыл бұрын
I've noticed a weird quirk in Fish: I have figlet set to display my name whenever I open my terminal in my config.fish Whenever I execute a shell script, figlet displays at the beginning of the script, meaning that Fish re-executes the configuration file when a script is ran? It's quite annoying, and I can't find a way to fix it.
@dougtilaran3496
@dougtilaran3496 2 жыл бұрын
Grandpa said if a fish is bloated, toss it overboard
@airilsra
@airilsra 4 жыл бұрын
you also can have that vi-mode indicator in bash.
@xWe2s
@xWe2s 4 жыл бұрын
Yep. Seems like Fish + Starship is enough for replacing a tons of things and hours in zsh, evenmore bash :D
@paulosantana9607
@paulosantana9607 4 жыл бұрын
I quit zsh after noticing that the only plugins I used were actually built into fish. And man, starship is damn fast. I might just finally stop hopping between utilities and settle down for a while
@melvingeorge10
@melvingeorge10 4 жыл бұрын
You sound like Eugene from TWD. Keep up the good videos ✌️
@DistroTube
@DistroTube 4 жыл бұрын
Wow, thanks! Eugene is the man!
@MrThankman360
@MrThankman360 4 жыл бұрын
Fish fish Fish fish Fish fish Oops....DT hung up...
@alphabanks
@alphabanks 3 жыл бұрын
Thanks for this I'm just learning Linux and this is a must have imo.
@ezforsaken
@ezforsaken 4 жыл бұрын
Is there a Posix 32 compliant fork of fish? I like many of the features, but I don't use the terminal just for MY system, but I do scripts for all my devices and servers, also systems for other people, so having a non compliant shell doesn't do me a favor.
@sneekylinux
@sneekylinux 4 жыл бұрын
Ta Mr D, am gonna give this a go as I have never heard of it, it doesn't matter how long you use Linux there are always new things to learn..kudos
@x1x2x125
@x1x2x125 4 жыл бұрын
There is literally zsh-syntax-highlighting and autocomplete
@noam65
@noam65 3 жыл бұрын
This is a shell I might actually try, though the non-POSIX will definitely take some getting used to. Thanks for the tour.
@bromudro0304
@bromudro0304 3 жыл бұрын
There is a shell that I would like to redirect you to called FIZSH (Friendly Interactive Z Shell), which is a front end to ZSH with interactive syntax-highting and Matlab-like history search (like fish), while still being POSIX compliant. github.com/zsh-users/fizsh
@2l3r43
@2l3r43 4 жыл бұрын
Backspace doesnt wirk in vim with fish, it works with bash
@technologicalwaste7612
@technologicalwaste7612 4 жыл бұрын
Zsh and Fish are superior to Bash as interactive shells, though neither are adequate as scripting languages in the same way as Bash.
@franzxaver1672
@franzxaver1672 4 жыл бұрын
Well actually you really want to use posix sh for shell scripting, not bash.
@MartinsTalbergs
@MartinsTalbergs 4 жыл бұрын
Absolutely!
@thenextpoetician6328
@thenextpoetician6328 4 жыл бұрын
Sophisticated is not formed by sophistry and complicated, but sometimes it could be.
@Growlboy1986
@Growlboy1986 4 жыл бұрын
Really great video about fish. It is my default shell now, thanks to you.
@disconnect3763
@disconnect3763 7 ай бұрын
Hello guys, how to colorized output "ip a" or "ifconfig" on fish shell?
@buzzdx
@buzzdx 4 жыл бұрын
the changed syntax .. that means that most scripts won't run on it. not sure if that is a good thing.
@dmmeteo
@dmmeteo 4 жыл бұрын
have you tried `fizsh`?
@fernandojsantos09
@fernandojsantos09 4 жыл бұрын
Awesome shell... Very very nice
@EagerEggplant
@EagerEggplant 4 жыл бұрын
Amazing video man
@berrnardflach
@berrnardflach 4 жыл бұрын
Witch desktop are you using in this video ?
@DistroTube
@DistroTube 4 жыл бұрын
qtile
@strifef7
@strifef7 4 жыл бұрын
Thanks for this vid DT. Im just starting to learn scripting. Do you think it’s a good idea for me to just learn fish syntax since it is a bit different? I really like that it comes preconfigured with plugins.
@danielfrench8528
@danielfrench8528 4 жыл бұрын
No, I think you should start learning posix sh (or bash, which is posix sh with additional features). You probably don't want to script in fish, it's just made for interactive use. Thus I wouldn't recommend fish at all, because it makes things harder for your because you have to and posix sh syntax for scripting and in addition fish syntax for interactive use, which can result in you typing $() in the fish all the time, which is quite annoying.
@crides0
@crides0 4 жыл бұрын
Have you checked out the ion shell?
@gajeet6745
@gajeet6745 3 жыл бұрын
How does he do that pacman colourful greeting whenever he open a terminal?
@soapiestwaffles
@soapiestwaffles 4 жыл бұрын
What is the window manager that you are using in this video?
@juliovalencia8031
@juliovalencia8031 2 жыл бұрын
I just started learning and someone has remote acces to my computer using fish they have disabled my computer from downloading or from allowing me to install virtual environments can someone help me out how to get acces too my root to be able to block them please
@anatolii1013
@anatolii1013 4 жыл бұрын
Thanks a lot! I'm happy with fish-shell ! :)
@AnzanHoshinRoshi
@AnzanHoshinRoshi 4 жыл бұрын
Thank you, Derek.
@henniemulder2853
@henniemulder2853 3 жыл бұрын
can somebody please tell me what the difference or relationship between a DE and a SHELL is ... yeah Im thinking of moving one of my machines over to Linux , but first I need to learn a bit about Linux.
@chloe-sunshine7
@chloe-sunshine7 2 жыл бұрын
A DE is the whole desktop experience. This could include the login screen, and the window manager and quite a few other things. The way shell was explained to me is "the language of the terminal" which I don't fully understand yet. Edit: I'm still quite new too. Just got my first Arch install done a couple days ago
@red-switch
@red-switch 2 жыл бұрын
I too want to move to Linux. But haven't bit the bullet yet. I'm hoping to start using a Linux alternative to PowerShell while I'm still using Windows, so when the time comes to switch, it is not so painful. Your question is difficult to answer. A shell is actually the interpreter of the commands that you are typing in into the command line. While normal programming languages like C# and Java are designed to be used to write programs, a shell language like bash or fish or zsh is designed to so that you can execute single lines of code to interact with your computer, so they will be terse. if you are asking about the term "desktop environment" when you say "DE", then that is the graphical user interface loaded by Linux which you would use to launch other apps. A bit like a launcher for Android. It would also have defaults for things like what app is used for what, like the terminal, package manager etc. As for the relationship between the two, they are both ways of interacting with your computer, one text based, and one graphics based.
@charliekahn4205
@charliekahn4205 4 жыл бұрын
If they're making these syntax changes to go halfway, why not go the rest of the way and write a shell entirely using Lua syntax?
@rochr4
@rochr4 4 жыл бұрын
Once U good with bash, what's the point? I guess binging through syntax of a new app without glancing at man? Not sure.
@TheB3n0
@TheB3n0 4 жыл бұрын
FISH is awesome. But it isn't POSIX compliant, and that's the only reason why I use ZSH
@thestreamreader
@thestreamreader 4 жыл бұрын
Why is this important??
@TheB3n0
@TheB3n0 4 жыл бұрын
@@thestreamreader Because I already have quite a few shell scripts which I use constantly. I don't want to rewrite them. Also POSIX compliance allows me to be lazy and fork someone's else script instead of making one from the scratch
@sethwilliamson
@sethwilliamson 4 жыл бұрын
@@TheB3n0 Why not use whatever shell you like for interactive use and then run your scripts with /bin/sh? I mean, I agree I would never run scripts with FISH. I'd never write them for the FISH syntax or execute them with FISH either (for the same reason you gave.) You can have both.
@warhawk_yt
@warhawk_yt 4 жыл бұрын
I’ve always wondered how you get bash powerline and now fish to use git bare repositories as by default it doesn’t detect the branch or anything.
@angli6939
@angli6939 4 жыл бұрын
If you remove every instance of "fish" from the video you won't be able to figure out if he is talking about zsh or fish; most things are also possible in zsh as well plus zsh you can add or remove features. Are there any unique good things about fish? Except you don't have to configure things like you would with other shells.
@brainplot
@brainplot 4 жыл бұрын
Yes. Fish is faster than zsh to redraw the prompt and run scripts in, especially if you install oh-my-zsh for zsh. Not sure what you mean by "removing features" because fish is already rather minimal except for syntax highlighting, which I guess (not sure) you can disable too. The zsh language is way too feature-rich - main reason why it's slow to run - and often times zsh metacharacters get in the way of actual commands (for example `git diff stash@{1}`). The fish language is far more minimal and it's designed with user-friendliness in mind (user-friendliness is the main selling point of the shell as a whole) and as a result, the syntax *never* gets in the way with commands. As an example, in fish you can run `find -name '*blah*' -exec foo {} +` without escaping anything as I just did.
@angli6939
@angli6939 4 жыл бұрын
@@brainplot Removing features I mean plain zsh doesn't look as well as fish but you get to pick plugins (even without oh-my-zsh which is bloat) that allows you to customize zsh and basically work the same as fish. I just tried fish and it is REALLY fast compared to my zsh at launch time. Do you think the shell will still be faster after all the configuration and plugins?
@brainplot
@brainplot 4 жыл бұрын
@@angli6939 I don't know from first-hand experience because I only have OMF installed for the theme that I use, which is bobthefish. Honestly I don't know which plugins you would install because the shell is already very smart by itself. That said, your needs may differ from mine.
@dantheman8862
@dantheman8862 4 жыл бұрын
4:40 -- Your home directory is a git repository??? How do you work on any git project under ~/ ?
@viennakrakatoaleipzignumbers
@viennakrakatoaleipzignumbers 4 жыл бұрын
He uses the home directory as a bare repository, afaik. Which fixes that problem.
@kellingc
@kellingc 4 жыл бұрын
always good to explore other shells. I don't know if it offers anything that would make me switch to fish.
@banguard856
@banguard856 2 жыл бұрын
Auto completion
@kellingc
@kellingc 2 жыл бұрын
@@banguard856 BASH has auro completion, as my twitchy pinkie finger over the TAB key will attest 😀
@banguard856
@banguard856 2 жыл бұрын
@@kellingc they just added that, starship with fish is still nice
@IgorogI1000
@IgorogI1000 4 жыл бұрын
well i think im gonna dive on that
@swgohreal-talk5790
@swgohreal-talk5790 4 жыл бұрын
Been using fish for awhile always preferred it over bash
@andrewyu6996
@andrewyu6996 4 жыл бұрын
Question: What is the plugin to enable that vim status thingy? Did you customize your own theme?
@Dluzak1
@Dluzak1 4 жыл бұрын
Do you mean the status line at the bottom? Most likely Airline or other Powerline-like plugin.
@andrewyu6996
@andrewyu6996 4 жыл бұрын
i mean the insert and normal mode sruff. the vim plugin for fish cl doesn't give me that but the fish internal setting does, thanks
Find And Locate Your Files
10:55
DistroTube
Рет қаралды 15 М.
Fish Shell Tips and Tricks (Can Your Shell Do This?)
14:44
DistroTube
Рет қаралды 70 М.
Creative Justice at the Checkout: Bananas and Eggs Showdown #shorts
00:18
Fabiosa Best Lifehacks
Рет қаралды 22 МЛН
The IMPOSSIBLE Puzzle..
00:55
Stokes Twins
Рет қаралды 189 МЛН
Увеличили моцареллу для @Lorenzo.bagnati
00:48
Кушать Хочу
Рет қаралды 9 МЛН
Lazy days…
00:24
Anwar Jibawi
Рет қаралды 7 МЛН
A Linux Shell Prompt That's Out Of This World!
13:30
DistroTube
Рет қаралды 186 М.
Rust Programs Every Linux User Should Know About
13:18
DistroTube
Рет қаралды 135 М.
Bash is Bloated!
11:48
Luke Smith
Рет қаралды 144 М.
Why I Switched Back to Bash, And Why You Should Too
10:42
The Linux Cast
Рет қаралды 45 М.
I Was DEFINITELY Using The Wrong Terminal Shell
9:59
DevOps Toolbox
Рет қаралды 58 М.
zsh: Syntax Highlighting, vi-mode, Autocomplete, more
10:39
Luke Smith
Рет қаралды 319 М.
Bash vs ZSH vs Fish: What's the Difference?
13:32
Eric Murphy
Рет қаралды 193 М.
FISH (Friendly Interactive Shell) by Bash Boomer
12:00
Luke Smith
Рет қаралды 233 М.
The 12 Linux Apps Everyone Should Know About
21:20
DistroTube
Рет қаралды 477 М.
Creative Justice at the Checkout: Bananas and Eggs Showdown #shorts
00:18
Fabiosa Best Lifehacks
Рет қаралды 22 МЛН