 Hey, everybody welcome back to the channel today. I'm going to be talking about ZSH now ZSH is my favorite shell To use on my computer and there are several reasons why for the most part it's because it's mostly bash with a few extra features and It has easier You can extend it easier than you can bash So there's a ton of stuff you can do with bash and make it better You can enable auto-completion you can enable auto suggestions in bash You can enable different prompts and bash that you can do all the same things in bash that you can do with ZSH It's just a little bit more work than it is in ZSH And that's the reason why I like this age because I'm always all about doing as little work as possible So I Mean really truer words have never been spoken. I mean that should literally be the Byline on my channel. I mean that's just the way it should be Matt The laziest bastard to ever exist. I'm just I mean it's just out there Anyways, ZSH is just an amazing prompt that is just It's just like bash but with a few extra features So I'm gonna talk about the date that today But before I do I just want to answer the question Why don't I use fish and the answer to that question is very simple Fish does not know what a dollar sign means in a script I'm just gonna put that out there. That's the reason why you run a shell script with a dollar sign in it Fish isn't gonna know what to do matter of fact. It'll tell you it literally does not know what to do and Until fish learns what to do with a dollar sign and show in a shell script It's not gonna get my business. So that's the reason why I don't use fish So let's just jump in and I'll show you a few of the things I like about ZSH So one of the things that I enjoy most about ZSH is the auto-completion. So if I type in documents like this, it's gonna It'll actually go through and try to complete that obviously I've missed type that completely and added a Special character to it. So I'm not gonna have it go through and do that But if I type in that and then press tab it will go through and complete it for me in bash for the most part Unless you've added some functionality to it If you don't type Documents or downloads or whatever with a capital D. It'll return an error Now like I said, you can go through in bash and change that through some magic But for the most part If you'd mis-type something it's just not going to work if you want to auto Auto-complete in bash. You have to at least have spelled it right from the start now auto Correct and auto suggestions are a little bit different. So auto suggestions will go through and actually go remind you of past Commands that you've ran. So if I do, let me see if I can find one that I've run before CD slash run So if you as you can see It'll actually go through and try to predict what I'm going to be typing That's not built in ZSH out of the box, but it has a plug in and allows me to do that you can do that and bash as well, but again, it requires some extra work and Also auto completion is really good for going to different directories. So if I wanted to CD into my users Slash local slash bin if I just want to type in slash you slash L Slash B and then press tab it would actually go through and complete all those things for me It's kind of it's basically an alias But it works and it's especially good if you've made a Like if I I believe if I do this if I do us you RS and do tab Here now I don't work Sometimes you have to guess, you know what will work and what won't work It's not a hundred percent accurate But for the most part if I just like said if I do you hello and then I actually go through and complete it that way that's really nice and Let's say I want to go into something else outside it, you know inside this directory if I press tab twice again That I think I had to be in this one. Yeah, if I press tab Twice again, I'll actually go through and let me to tab through these things and that's really cool So if I want to again go right back into my bin I Could do it that way and then just press enter and then do LS and it goes through and shows me everything That's in my bin folder now The other thing that's really nice is That it has a ton of plugins so if I have this web page open here And this is a collection on GitHub of a whole bunch of awesome ZSH plugins. It literally says Awesome ZSH plugins. So you know that every plugin on here is awesome. It says so right in the title I mean it's on the internet. So it has to be true Nobody would lie to you on the internet Just facts anyways There's just tons of them on this page here and you can go through and you know do different things with your fonts You know, you can add fonts as plugins. It allows you to go through and do cool things with your Prompt or your the layout or whatever and it will you know, it's just cool And there's a ton of the other ones For completion and stuff. So we go back up here to the top if we go to completion here where the Completions so there are tons of ones here just for completion. So Completions for auto package adds completion support for AWS profiles adds completion for AWS manager in CLI support bash completions for commands when no native zsh one is available. So That one's just just for bash completions Add tap completions for Berkshelf There's just I mean, there's literally dozens of of these here. I mean stuff for docker and dropbox and Fzf completions so I mean there's just There's hundreds of plugins here on this page and that's what I like about zsh now Obviously like with anything that has a plugin system the more plugins you add The slower it's going to get so zsh is biggest Failure when it comes to actually being, you know, a good shell is that it is slower than bash and that's just true I mean, even if you do no plugins at all It's going to be probably 10 to 15 percent slower than bash And if you add on top of that running something like oh my zsh It's gonna be even slower than that now for the most part. I don't notice. I just don't I don't run any long form Programs in my shell that would cause me to notice that it's slow. Now if you run big Bash scripts that take long time to that take a long time to you know, complete you'll you'll notice Especially like I said if you add more and more plugins, so that's just the thing In terms of it comparison it to comparing it to fish Fish has a lot of these things that you'd have to add out of the box So it has the auto suggestions out of the box. It has a lot of the stuff that zsh touts is things that it enjoys out of the box But again If you want to run on your scripts, you're you know, you're not gonna be able to do that because fish is not politics compliant it just isn't so Zsh is very good and I Think if it was just a little bit faster I think that it would probably be the shell that would be default default on those systems now I know that like Ubuntu has switched to Dash I think is what they use now and but Gencho has gone to to fit has Gentoo gone to fish or zsh I can't remember they switched to one of them. So It's come to a point where some of the distributions are finally seeing a light and switching away from bash to add a few extra layers of Functionality into their shells, you know, then what bash would offer So that's really exciting because bash has been the default for 20 30 years long time and it's time for something new now. I'm just gonna put this out there If you use arc olinix at least the most recent versions of arc olinix arc olinix has a bastard a bash Rc file That is really good. And if you use that bash Rc file You probably won't notice that you're not using zsh because it has auto suggestions. It has auto correction built-in It has a ton of different aliases that go through and make it, you know Feel like you're using zsh. It's really good. So Eric and the team have over there but they've done a really good job of Making bash as good as it possibly can be and you get the added, you know Benefit of it being as fast as bash can be so that's really good So that's it for this video if you want to follow us you can do so at the Linux cast You can follow us on Facebook at the Linux cast you can support us on patreon at patreon.com Slash Linux cast and with that in mind. I'd like to thank our current patrons Devon Zach Marcus American camp. Thanks everybody for your support. Thank you for watching. I'll see you next time