Fish Is A Modern Shell For The Sophisticated User

แชร์
ฝัง
  • เผยแพร่เมื่อ 25 ม.ค. 2025

ความคิดเห็น • 431

  • @faerryn8708
    @faerryn8708 4 ปีที่แล้ว +520

    Fish is good for the brain, lots of Omega-3 acids

    • @CPSPD
      @CPSPD 4 ปีที่แล้ว +13

      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 ปีที่แล้ว +10

      @@CPSPD yeah, but you wouldn't usually eat the bass, you would slap it!

    • @KishoreG2396
      @KishoreG2396 4 ปีที่แล้ว +1

      @@zyansheep slapp

    • @helkafen100
      @helkafen100 3 ปีที่แล้ว +1

      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 ปีที่แล้ว +297

    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 ปีที่แล้ว +58

      Oh, I should definitely do that!

    • @JeremyCaron
      @JeremyCaron 4 ปีที่แล้ว +5

      Good call!!

    • @brainplot
      @brainplot 4 ปีที่แล้ว +44

      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 ปีที่แล้ว +3

      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 ปีที่แล้ว +6

      @@brainplot git-crypt and gitlab private repo = rest easier

  • @fahimzahir2085
    @fahimzahir2085 4 ปีที่แล้ว +144

    @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 ปีที่แล้ว +6

      This is not discord

    • @fahimzahir2085
      @fahimzahir2085 4 ปีที่แล้ว +28

      @@Yuriyalloween This is sparta

    • @username-du2er
      @username-du2er 3 ปีที่แล้ว +4

      i know it's been a while, but here's a welcome to linux to the past you

    • @dejangegic
      @dejangegic 3 ปีที่แล้ว +8

      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.

    • @yannrampitsch
      @yannrampitsch 3 ปีที่แล้ว +3

      @@dejangegic this sounds all to famillair, lol
      ahem
      arch user btw :P

  • @timonpasslick
    @timonpasslick 4 ปีที่แล้ว +72

    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 ปีที่แล้ว +6

      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 ปีที่แล้ว +5

      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 ปีที่แล้ว +4

      @@joaopedrodeamorimpaula8965 I'm new to Linux so fish is best for me but that makes sense.

  • @atimholt
    @atimholt 4 ปีที่แล้ว +215

    I'm imagining a compatibility layer project being called “bish”. Or “fash”.

    • @freshfrij0les
      @freshfrij0les 4 ปีที่แล้ว +55

      Probably don't want to call it fash lmao

    • @xijinpingpong4426
      @xijinpingpong4426 4 ปีที่แล้ว +64

      bish the fash

    • @jonassteinberg3779
      @jonassteinberg3779 4 ปีที่แล้ว +1

      @@xijinpingpong4426 on site

    • @YouKnowMeDuh
      @YouKnowMeDuh 4 ปีที่แล้ว +7

      Bish for obvious reasons :)

    • @karpfenboy
      @karpfenboy 4 ปีที่แล้ว +22

      it exists, but is called bass

  • @adamu6941
    @adamu6941 3 ปีที่แล้ว +10

    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 :)

  • @TheExard3k
    @TheExard3k 3 ปีที่แล้ว +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.

  • @RonnieNissan
    @RonnieNissan 4 ปีที่แล้ว +15

    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.

  • @mikhaeldito
    @mikhaeldito 4 ปีที่แล้ว +20

    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.

  • @golevka
    @golevka 4 ปีที่แล้ว +2

    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 ปีที่แล้ว +7

    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.

  • @balmar3
    @balmar3 4 ปีที่แล้ว +6

    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 ปีที่แล้ว +1

      It does! Also, Alt+ and Alt+ to intsantly change PWD is awesome time travel! >

  • @kapsowe
    @kapsowe 4 ปีที่แล้ว

    Texas Genius. No doubt you're the BEST Linux channel here on TH-cam. Today I just watched so many of your videos, I will watch all your videos. Thumbs UP

  • @aedd3307
    @aedd3307 4 ปีที่แล้ว +18

    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.

  • @samuelcollins6644
    @samuelcollins6644 4 ปีที่แล้ว +9

    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 ปีที่แล้ว +5

      Nice. In fact, just typing ".." without the cd works! :D

  • @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 :)

  • @ghoom
    @ghoom 4 ปีที่แล้ว +15

    2:37 Oh no, FISH has dominated his life!!

  • @maxarendorff6521
    @maxarendorff6521 4 ปีที่แล้ว +9

    Fish is great. I've been using it for years. I couldn't use any other shell at this point.

  • @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

  •  4 ปีที่แล้ว +16

    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 ปีที่แล้ว +1

      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 ปีที่แล้ว +7

      @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 ปีที่แล้ว +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 ปีที่แล้ว +2

      Have you tried zplug? It's the new hotness.

    •  4 ปีที่แล้ว +1

      @@LaurenZou nope. I'll look into it, but I'm fairly happy with my manual config.

  • @ArtemPyatkovsky
    @ArtemPyatkovsky 4 ปีที่แล้ว +7

    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?

  • @darienclose5063
    @darienclose5063 4 ปีที่แล้ว +1

    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

  • @j1d7s
    @j1d7s 4 ปีที่แล้ว +5

    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 3 ปีที่แล้ว

      Try oh my fish

    • @konstantink07
      @konstantink07 2 ปีที่แล้ว +1

      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.

  • @mecrumbly429___4
    @mecrumbly429___4 4 ปีที่แล้ว +1

    I’ve used fish for as long as I can remember using Linux. Thanks for reviewing this shell.

  • @RagTagPwner
    @RagTagPwner 2 ปีที่แล้ว

    WHAT? A web browser config tool built-in?? Beautiful!

  • @JeremyCaron
    @JeremyCaron 4 ปีที่แล้ว +3

    YES DT! I've been on fish for almost a year and its SICK

  • @CyReVolt
    @CyReVolt 4 ปีที่แล้ว +2

    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 :)

  • @marlls1989
    @marlls1989 4 ปีที่แล้ว +1

    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

  • @busyrand
    @busyrand 2 ปีที่แล้ว

    Brilliant! This is exactly the type of thing I've been looking for...

  • @dannythomsen
    @dannythomsen 4 ปีที่แล้ว +2

    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

  • @TheRealFaceyNeck
    @TheRealFaceyNeck 4 ปีที่แล้ว +13

    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.

  • @DUANEYAISER
    @DUANEYAISER 4 ปีที่แล้ว +18

    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 ปีที่แล้ว +1

      Agreed I use the same, but fish is sexy af. I'm so tempted.

    • @konstantink07
      @konstantink07 2 ปีที่แล้ว +1

      Better use zplug, it's far less bloated

    • @typecrafted
      @typecrafted ปีที่แล้ว

      @@konstantink07 better use zinit, it's even less bloated

  • @dantheman8862
    @dantheman8862 4 ปีที่แล้ว

    4:40 -- Your home directory is a git repository??? How do you work on any git project under ~/ ?

  • @KarlMySuitcase
    @KarlMySuitcase 4 ปีที่แล้ว +2

    loving zsh with syntax highlighting currently

    • @Fetusgi
      @Fetusgi 4 ปีที่แล้ว +1

      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

  • @indigo0086
    @indigo0086 4 ปีที่แล้ว +2

    Was anyone else expecting "some of the coloring going on with fish fish fish fish fish fish fish..."

  • @jesseleite
    @jesseleite 4 ปีที่แล้ว +2

    Hey what are you using to generate those pacman / space invaders / etc. logins?

    • @TheBettinx96
      @TheBettinx96 4 ปีที่แล้ว +2

      I finally found it, it's on his GitLab: gitlab.com/dwt1/shell-color-scripts

  • @ltxr9973
    @ltxr9973 4 ปีที่แล้ว +3

    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 ปีที่แล้ว +1

      This!

    • @aedd3307
      @aedd3307 4 ปีที่แล้ว +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.

  • @HarshSharma-uf8jc
    @HarshSharma-uf8jc 4 ปีที่แล้ว +2

    Exploring the linux universe with DistroTube👀

  • @airilsra
    @airilsra 4 ปีที่แล้ว +1

    you also can have that vi-mode indicator in bash.

  • @nycex267
    @nycex267 4 ปีที่แล้ว +8

    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 ปีที่แล้ว +1

      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.

  • @AaronStarkLinux
    @AaronStarkLinux 4 ปีที่แล้ว +15

    I have everything I need in Zsh, I don't see differences at all.

    • @csbnikhil
      @csbnikhil 4 ปีที่แล้ว

      Oh My Zsh! Yes.

    • @AaronStarkLinux
      @AaronStarkLinux 4 ปีที่แล้ว +5

      @@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 ปีที่แล้ว +1

      @@csbnikhil Everything you need is in the documentation.

    • @sohn7767
      @sohn7767 4 ปีที่แล้ว +2

      moxy weird cpu buy okay

  • @gassug2
    @gassug2 3 ปีที่แล้ว

    only thing keeping me from switching is that "sudo !!" doesnt work. im sure there's a way to implement it though

  • @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 ปีที่แล้ว +2

      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

  • @beardedgeek973
    @beardedgeek973 4 ปีที่แล้ว +1

    Been using Fish for about a year. Not changing anytime soon!

  • @alphabanks
    @alphabanks 4 ปีที่แล้ว +1

    Thanks for this I'm just learning Linux and this is a must have imo.

  • @bayrockdev
    @bayrockdev ปีที่แล้ว

    Fish has a web configuration for previewing and configuring themes and such.

  • @greyman1104
    @greyman1104 4 ปีที่แล้ว +26

    Will never replace Zsh with Oh My Zsh.

    • @semilin
      @semilin 4 ปีที่แล้ว +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 ปีที่แล้ว +1

      I tried fish and I also like Zsh with Oh My Zsh more.

  • @witoldhodys4453
    @witoldhodys4453 3 หลายเดือนก่อน

    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

  • @disconnect3763
    @disconnect3763 8 หลายเดือนก่อน

    Hello guys, how to colorized output "ip a" or "ifconfig" on fish shell?

  • @dagadbm
    @dagadbm 4 ปีที่แล้ว +1

    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. :-)

  • @walkerneo
    @walkerneo 2 ปีที่แล้ว

    Why is neovim your default editor instead of emacs, which you've done some videos on?

  • @dmmeteo
    @dmmeteo 4 ปีที่แล้ว +2

    have you tried `fizsh`?

  • @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.

  • @henniemulder2853
    @henniemulder2853 3 ปีที่แล้ว +1

    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 3 ปีที่แล้ว

      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.

  • @melvingeorge10
    @melvingeorge10 4 ปีที่แล้ว +3

    You sound like Eugene from TWD. Keep up the good videos ✌️

    • @DistroTube
      @DistroTube  4 ปีที่แล้ว +2

      Wow, thanks! Eugene is the man!

  • @gajeet6745
    @gajeet6745 3 ปีที่แล้ว

    How does he do that pacman colourful greeting whenever he open a terminal?

  • @David-mw8vr
    @David-mw8vr 4 ปีที่แล้ว +4

    Zsh is my favorite. Auto suggestions is SO helpful

  • @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.

  • @DejaimeNeto
    @DejaimeNeto 4 ปีที่แล้ว +5

    DistroTube: because my home directory is a git repository
    Me: surprised pikachu

  • @EagerEggplant
    @EagerEggplant 4 ปีที่แล้ว +1

    Amazing video man

  • @harryfabian
    @harryfabian 4 ปีที่แล้ว +1

    I love your manner of speech. Idk if it’s an accent or that combined with your idiosyncratic speech characteristics. Where are you from?

  • @JonBaldie
    @JonBaldie 2 ปีที่แล้ว

    Been using fish since 2015 when I got my first developer job 🙂 I love it!

  • @sneekylinux
    @sneekylinux 4 ปีที่แล้ว +1

    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

  • @xWe2s
    @xWe2s 4 ปีที่แล้ว +1

    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

  • @infinitebeast5517
    @infinitebeast5517 4 ปีที่แล้ว +1

    Can someone tell me the name of his theme colors and how or what to use to get the pacman and fish stuff on top on terminal start?

    • @alphabennyrosy5068
      @alphabennyrosy5068 3 ปีที่แล้ว

      Dracula theme, idk about the other stuff. It's transparent and probably running in alacritty. The stuff at the start with the pacman and fish is probably some program like neofetch running when he launches a fish shell.

  • @kellingc
    @kellingc 4 ปีที่แล้ว +2

    always good to explore other shells. I don't know if it offers anything that would make me switch to fish.

    • @banguard856
      @banguard856 3 ปีที่แล้ว

      Auto completion

    • @kellingc
      @kellingc 3 ปีที่แล้ว

      @@banguard856 BASH has auro completion, as my twitchy pinkie finger over the TAB key will attest 😀

    • @banguard856
      @banguard856 3 ปีที่แล้ว

      @@kellingc they just added that, starship with fish is still nice

  • @SimGunther
    @SimGunther 4 ปีที่แล้ว

    Jonathan Blow's shell: finally a shell that won't break my computer LOL

  • @johnnyblack4261
    @johnnyblack4261 4 ปีที่แล้ว +2

    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?

  • @dougtilaran3496
    @dougtilaran3496 2 ปีที่แล้ว

    Grandpa said if a fish is bloated, toss it overboard

  • @antoinemoran3537
    @antoinemoran3537 4 ปีที่แล้ว +1

    Hey, just wanted to know. Do you run fish as your default terminal or only as your interactive terminal?

  • @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.

  • @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

  • @2l3r43
    @2l3r43 4 ปีที่แล้ว

    Backspace doesnt wirk in vim with fish, it works with bash

  • @angli6939
    @angli6939 4 ปีที่แล้ว +2

    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.

  • @anatolii1013
    @anatolii1013 4 ปีที่แล้ว

    Thanks a lot! I'm happy with fish-shell ! :)

  • @debanjanbarman7212
    @debanjanbarman7212 4 ปีที่แล้ว +2

    It's almost one year I've been using Linux, always used default shell bash, so I don't know the difference between all these shell. Can anybody help me to understand the difference between all these shell's??

    • @beigottlos
      @beigottlos 4 ปีที่แล้ว +2

      medium.com/almoullim/from-bash-to-zsh-to-fish-e432f1e1b9f8

    • @jeetadityachatterjee6995
      @jeetadityachatterjee6995 4 ปีที่แล้ว +2

      A shell is just the interface you type commands into. Bash is the bourne again shell it's a gnu project and basically a rewrite of an older shell and it is ment to add a bunch of features and modernise what is essentially the default Linux shell.
      Then there is zsh (my favourite) it adds a bunch of features (like sane prompt scripting, interactive tab completion and more!) The only reason it's not more popular is that you need to work for a config (very little is activated by default). Zsh also has a wide variety of plugins (oh my zsh ). A lot of them can match or even extend some of the things that fish has on by default.
      Fish (the one discussed) is by far the easiest to use and frankly I am not sure why Ubuntu is not using it by default (I mean it can't be used a login shell (all this means is that your system cant use it to run programs in startup) ) fish is easy and nice to use and it's sane! One of the problems with fish is that it's not POSIX complient (this means it does not conform to Unix standards set back in the 80s?) This makes the scrips you write less useable to others (portable) and means that fish may have a harder time using scripts written in other shell languages.
      There are others like csh (for c programmers) and ksh (I have no clue) but those arme a little more niche (I will also mention sh this is a faster but less feature rich shell used mostly for scripting). That's most of the differences imo.

    • @debanjanbarman7212
      @debanjanbarman7212 4 ปีที่แล้ว

      @@jeetadityachatterjee6995 Thanks bro for taking your time to make me understand all this, Linux community is great. #Linux

    • @debanjanbarman7212
      @debanjanbarman7212 4 ปีที่แล้ว

      @LarlKarl I am also frustrated with this term POSIX what does it mean??

    • @jeetadityachatterjee6995
      @jeetadityachatterjee6995 4 ปีที่แล้ว +2

      @@debanjanbarman7212 it's an old standard for the way Unix systems work. It's mostly the syntax of the shell. POSIX is much more than that but that's what most people mean when they bring it up

  • @crides0
    @crides0 4 ปีที่แล้ว

    Have you checked out the ion shell?

  • @x1x2x125
    @x1x2x125 4 ปีที่แล้ว +1

    There is literally zsh-syntax-highlighting and autocomplete

  • @estring69
    @estring69 2 ปีที่แล้ว

    Thanks fo rthe vi in bash comment. I thought this was possible, but didn't know. I appreciate your keyboard centric videos. I hope to try the keyboard centric display managers soon.

  • @TheHermitHacker
    @TheHermitHacker 4 ปีที่แล้ว

    I would love to see how you would solve chroot or jail for ssh users but also for sftp. Can fish be used for sftp clients like filezilla or winscp? I need to move away from cpanel hosting and moving to containers with bind mounts with sftp with restricted shell for running composer, node, etc.

  • @Gregory-F
    @Gregory-F 4 ปีที่แล้ว

    I love fish. I like to ask if you don't mind: why using aliases over abbreviations?

  • @AtomToast
    @AtomToast 4 ปีที่แล้ว +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 ปีที่แล้ว +5

      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 ().

  • @aravindk4967
    @aravindk4967 4 ปีที่แล้ว

    How do I get a dark theme on the fish configuration webpage like that?

  • @berrnardflach
    @berrnardflach 4 ปีที่แล้ว +1

    Witch desktop are you using in this video ?

  • @strifef7
    @strifef7 4 ปีที่แล้ว +1

    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 ปีที่แล้ว +1

      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.

  • @rochr4
    @rochr4 4 ปีที่แล้ว +2

    Once U good with bash, what's the point? I guess binging through syntax of a new app without glancing at man? Not sure.

  • @douglaidlaw740
    @douglaidlaw740 3 ปีที่แล้ว +1

    I was expecting that the command for color would actually do what it says, instead of standard white-on-black.

  • @buzzdx
    @buzzdx 4 ปีที่แล้ว

    the changed syntax .. that means that most scripts won't run on it. not sure if that is a good thing.

  • @logangraham2956
    @logangraham2956 4 ปีที่แล้ว

    what got me is ">>"
    not sure how to do equivalent .
    echo "hello world">>sometextfile.txt
    when i tried at least this didn't work.
    what is most missed with this is
    &>/dev/null

    • @logangraham2956
      @logangraham2956 4 ปีที่แล้ว

      also fish's math is easily replace with calc.

  • @charlessilberman1097
    @charlessilberman1097 4 ปีที่แล้ว

    Ion think that you should do a full video on fish shell and omg because a lot of people do not know how to setup and change the setting files and put in alias

  • @robertleo3561
    @robertleo3561 2 ปีที่แล้ว

    Tried fish, and it constantly freezes up when I press tab after some git command - found no good fix, 4/10

  • @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.

  • @MrThankman360
    @MrThankman360 4 ปีที่แล้ว

    Fish fish
    Fish fish
    Fish fish
    Oops....DT hung up...

  • @michaelcarnevale5620
    @michaelcarnevale5620 2 ปีที่แล้ว

    i might actually switch to fish.. i have a zsh config working now that i like but if i can reduce my config even further with fish and its sensible defaults then i think i'll try it
    people say it's bad becuz it's not posix-compliant but u can just use a shebang to get around that, or just switch to bash for scripting

  • @gaiusbaltar7122
    @gaiusbaltar7122 4 ปีที่แล้ว +1

    What about powershell?

    • @DistroTube
      @DistroTube  4 ปีที่แล้ว +1

      I would rather use the Nu Shell: th-cam.com/video/ra1RlD3p1pY/w-d-xo.html

  • @Growlboy1986
    @Growlboy1986 4 ปีที่แล้ว +1

    Really great video about fish. It is my default shell now, thanks to you.

  • @chanlyma
    @chanlyma 4 ปีที่แล้ว +1

    Nice video Distrotube. Can you try also PowerShell, since it is open source?!

    • @tobydickenson3811
      @tobydickenson3811 4 ปีที่แล้ว +2

      GOOD ONE

    • @Gabifuertes
      @Gabifuertes 4 ปีที่แล้ว

      I've always wondered what is the purpose of PowerShell outside Windows. I get names as "ls" or "cat" aren't intuitive or descriptive but "Get-ChildItem" is both a mouthful and annoying to type.

    • @chanlyma
      @chanlyma 4 ปีที่แล้ว

      @@Gabifuertes Although there's some reasoning behind the syntax in PowerShell, I must say that it could be rethought and improved. The interesting idea is the concept of objects inside the shell. (And I am not talking about object oriented programming where you create classes, etc. [I don't think that is useful in a shell]). What I want to express is , we all know command like wc, sed, awk, etc to manipulating strings, are very useful. Even more useful is Manipulating objects in the shell. Imagine pipeping and displaying results only by selecting some properties of your first content. I am a Linux fan and I like the concept of objects oriented shell. I hope that someone else does something better than PowerShell. Currently it's the only one.

    • @nathantruitt2740
      @nathantruitt2740 4 ปีที่แล้ว +3

      I’ve used both powershell and bash. I love Linux and bash. Linux is the best operating system to play around with. However having spent time learning some of both shells. PowerShell is definitely the better shell

    • @nathantruitt2740
      @nathantruitt2740 4 ปีที่แล้ว +1

      Gabifuertes I’ve spent time learning both bash and powershell. The “verb-noun” syntax is easier to memorize than the bash syntax

  • @fernandojsantos09
    @fernandojsantos09 4 ปีที่แล้ว +1

    Awesome shell... Very very nice

  • @henninb
    @henninb 4 ปีที่แล้ว +2

    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

  • @AnzanHoshinRoshi
    @AnzanHoshinRoshi 4 ปีที่แล้ว +1

    Thank you, Derek.