BASH vs ZSH Linux Shell Tutorial

preview_player
Показать описание

Playlist

This video was sponsored by:
Karl Arvid
Steven C. Morreale

Рекомендации по теме
Комментарии
Автор

Another awesome zsh feature is if you want to go to a long path you don't have to keep hitting tab. For example if you target path is:


bash> cd # that's a lot of tabbing.
zsh> cd my/su/du/ex/lo/pa[tab] # one tab and your done!

And let's say you're jumping around a bunch of different paths, and/or want to toggle between 2 paths in zsh, try doing cd -[tab] and you'll see a numbered list of recent paths and you can just type the number to go there.

There's actually a TON of awesome things about ZSH like globing to files in subdirectories or moving groups of files.. etc.
Thanks for the video, though you've merely scratched the surface.

LanceJordan
Автор

Thanks for putting up the content Kris. This was very helpful. I was wondering why some people thumbed it down, then I read the comments and noticed it is basically techno-fundamentalism.

MauriceLacerda
Автор

Bash can be configured for case-insensitive and single-tab completion.

ARandomOWL
Автор

basically all the things shown in this video can be achieved by configuring bash - rest you can get with the bash fzf integration

KimSchulz
Автор

from my point of view it make sense to compare what you get with both interpreters out of the box. If you need to configure particular feature, that we can discuss which shell is more "user friendly" for that purpose.

AleksandarDjurovic
Автор

When BASH pipes the auto-complete list through more, you can scroll using <enter> but for all intents and purposes, we can just say that it doesn't let you scroll.

PhilippeCarphin
Автор

just started using zsh and love the auto complete

GlennLopez
Автор

A nice intro into to tab completion in in ZSH can do but given you keep saying "this maybe doable in bash" means it's a pretty poor comparison of the two things.

RichieAHB
Автор

zsh looks cool, i might give it a try someday.

anwiseru
Автор

I also switch to zsh because of the autocompletion 3 years ago :)

RocknRolfHamburg
Автор

I use zsh for oh my zsh themes and plugins. Making the great autocomplete in zsh even better with configurable functionality and shortcut keaboard commands. I'm sure you can do most of this in bash aswell (never tried though), but adding plugins in the .zshrc file just seems much easier to me =)

krum
Автор

Thanks, was curious what the practical differences between Bash and zsh were. I think I might switch and give zsh a try

montheist_tv
Автор

At 6:17, how did you back the cursor to the begining and then replace “cd” with “ls”? Is it a hotkey of zsh or just press Home, Delete x2?

phuc_cuhp
Автор

dude thanks it's amazing tutorial !

TNsturmtcd
Автор

Guess I'll switch because I want to use vi input modes instead of emacs and bash has no indication whereas zsh does `show-mode-in-prompt on`

hrnekbezucha
Автор

The manual is over 20 000 lines long?! Is that supposed to be a good thing?

skepticmoderate
Автор

sorry, someone will likely have already pointed out that up to 3:15 not only bash and zsh have the same functionality, but by default neither of them has those features. things begin to diverge with completion color coding and kbd navigation of completion results. an important point is that by default neither zsh nor bash do any of those things. you set zsh up to do so (or alternatively you used grml's zsh config) but didn't do the same for bash. given that, while i still agree zsh is the better shell, you set bash up to fail. there are plenty of config files available online that would provide you with identical functionality up to the stated diversion point. you could and should have stuck with genuine differences between them which would make it a fair comparison.

VanBuren
Автор

Very important kernel, shell, shell. Scripts. Bell At&t, Berkley stories algorithm v6 code.

ra
Автор

I think there’s a mistake at 6:15... you are trying to search within the test2 directory... can’t be sure... never used ash but pretty that doesn’t seem logical to that

twinklede
Автор

You know the fish app will enable all these features in any shell.

joewat