Тёмный

Zsh: Finally Switching My Linux Shell To A Way Better Shell 

Brodie Robertson
Подписаться 85 тыс.
Просмотров 18 тыс.
50% 1

Опубликовано:

 

22 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 78   
@BrodieRobertson
@BrodieRobertson 4 года назад
What shell do you run and why do you run it, is it bash, zsh, fish, or maybe it's one of the weirder shells like xonsh. Let me know down below.
@xthebumpx
@xthebumpx 4 года назад
I'm experimenting with Nu on Windows (msys2/mingw) at work, feels much snappier than the zsh setups I've tried, though I'm not sure it would be as noticeable on a native linux machine.
@cujotwentysix7519
@cujotwentysix7519 4 года назад
I exclusively run Brainfuck so I can look cool in front of my friends
@jorgeromeu
@jorgeromeu 4 года назад
I love how honest this guy is: "I don't understand most of it I just stole it all from Luke Smith"
@BrodieRobertson
@BrodieRobertson 4 года назад
The beauty of FOSS, to be fair its a config
@faye_isc
@faye_isc 4 года назад
🤣🤣🤣🤣🤣
@lemler3337
@lemler3337 4 года назад
I really need to learn vim already, amazing how many different types of cli applications use vim bindings
@BrodieRobertson
@BrodieRobertson 4 года назад
There's plenty that don't, I just go out my way to find the ones that do or let me remap to vim keys
@travishopkins4124
@travishopkins4124 4 года назад
Try Greg Hurrel or Thoughtbot's videos. Leeren Chen also has a good presentation on what to learn
@maxarendorff6521
@maxarendorff6521 4 года назад
I use fish. It's got all the functionality and more of zsh but you don't have to set up everything yourself and it's extremely user-friendly. People complain about it's non-standard syntax but I don't think it's a big deal, you can still write scripts in POSIX-compliant syntax (if you want to) and just use the features of fish as an interactive shell
@BrodieRobertson
@BrodieRobertson 4 года назад
Setting up everything yourself is part of the fun for me
@liesdamnlies3372
@liesdamnlies3372 3 года назад
Fish is kinda like the “Apple experience” of shells (without the Apple bs). It’s smooth, has sensible defaults, and very easy-to-use right from the start. There is a _lot_ to be said for just having sensible defaults. The difference of course being is FOSS and has none of the Apple-level-bullshit.
@bitcointrader8586
@bitcointrader8586 4 года назад
The vim plugin is great if you want to edit commands and the syntax highlight is great too.
@BrodieRobertson
@BrodieRobertson 4 года назад
Vi mode is basically a must have for me now.
@bertilow
@bertilow 4 года назад
This made me jump to Zsh (and I borrowed a lot from your config file). Thanks!
@conceptrat
@conceptrat 2 года назад
Hey Brodie. Just a suggestion for a change in your. zshrc. Shift the neofetch call below the check for not being in interactive shell. It's pointless to run neofetch if it's not an interactive shell.
@RichardBronosky
@RichardBronosky 3 года назад
6:05 that was driving me crazy yesterday! So glad I decided to rewatch all your zsh videos AFTER switching.
@a_maxed_out_handle_of_30_chars
@a_maxed_out_handle_of_30_chars 4 года назад
Video on prompt, spaceship has many features by default. Would love to see a video explaining spaceship or any other prompt
@BrodieRobertson
@BrodieRobertson 4 года назад
99% of which I disable
@a_maxed_out_handle_of_30_chars
@a_maxed_out_handle_of_30_chars 4 года назад
@@BrodieRobertson lol
@SamiKankaristo
@SamiKankaristo 3 года назад
I didn't know about edit-command-line, it is pretty damn useful. Quite often, I start writing a command in the shell, realize that it's getting a bit too complex and I should make a script instead. Now it's one key combination, and I can edit the command in an editor. No need to copy and paste. I added a second key binding to do the same in my IDE. So now Ctrl+E opens Vim, and pressing Ctrl+E twice opens VSCode. I had to create another widget for that, widgets don't seem to allow using environment variables.
@travishopkins4124
@travishopkins4124 4 года назад
SAVE_HIST is the number of lines a single shell can append to your history file before it won't save anymore iirc
@BrodieRobertson
@BrodieRobertson 4 года назад
That makes sense
@ulyahin
@ulyahin 2 года назад
On the video on 8:34 u a using lc (bind on ^g) to choose file/dir. what is the lc?
@AkamiChannel
@AkamiChannel 4 года назад
Wow you went from aiming for 1000 subs to having 9000 subs pretty quick! Good job!
@BrodieRobertson
@BrodieRobertson 4 года назад
The initial boost I got was from Luke Smith giving me a shout out back at the start of the year.
@AkamiChannel
@AkamiChannel 4 года назад
@@BrodieRobertson Oh nice! I guess I'll just wait around for a miracle like that = P
@xtnctr
@xtnctr 4 года назад
Amazing
@drumpf4all
@drumpf4all 4 года назад
I'm sticking with bash. I'm comfortable with it and I don't want to learn another shell language.
@BrodieRobertson
@BrodieRobertson 4 года назад
That's fair, I just do everything in POSIX compliant script so it was just about the plugins for me.
@kunt230
@kunt230 4 года назад
I’ve been using Linux for a month, I switched to zsh and it’s basically the same “language”. I’m not very good at shell languages but it was absolutely no hassle to switch, run the command chsh (change shell) and you’re done.
@jw_023
@jw_023 3 года назад
Is it bad to have both installed? I use zsh as my shell and then script in bash.
@drumpf4all
@drumpf4all 3 года назад
@@jw_023 Nope. I have 4 shells installed. Install as many as you'd like. No harm.
@sagichdirdochnicht4653
@sagichdirdochnicht4653 Год назад
For what it's worth, you don't really need to learn another language. Commands do work as expected. I know there should be a few occations, where zsh wouldn't work right, but I personally haven't encountered them in two years so far. Also, one can still run commands in bash. Not trying to convert anyone, but in case some stumbles about and thinks he's gotta relearn the terminal, that ain't the case.
@waltereikrem
@waltereikrem 4 года назад
btw in bash at least on my manjaro setup. that last auto complete list thing, in there by default. just tab twice, and its there not just for man pages. but anything, dirs and commands. kinda cool, but you cant navigate the list tho like you can here :/
@BrodieRobertson
@BrodieRobertson 4 года назад
I've had some people tell me that Bash can do some of these things, I would assume manjaro comes with a preconfigured bashrc
@waltereikrem
@waltereikrem 4 года назад
@@BrodieRobertson it does. not much going on in there tho. but some of it is very usefull. like the auto complete stuff
@vasachisenjubean5944
@vasachisenjubean5944 2 года назад
dude where do i find your config ?
@travishopkins4124
@travishopkins4124 4 года назад
Where should my .zshenv go? I'd like to keep as much in my $XDG_HOME_DIRECTORY as possible, but having a single master file like ~/.zprofile to handle locations for everything in ~/.config/zsh is also an option...
@BrodieRobertson
@BrodieRobertson 4 года назад
It defaults to your home directory but if you want to mov it that's up to you, it'll depend on how cluttered you want yo home
@ChrisCox-wv7oo
@ChrisCox-wv7oo 4 месяца назад
Video should be titled "Luke Smith's zsh aliases that I don't understand. Bash sucks, ZSH is incredible"
@scorch855
@scorch855 4 года назад
Not being able to backspace when re-entering insert mode is not a bug. That's default vi behavior. It only allows you to backspace characters you have typed since entering insert mode. (Though I will admit it's quite annoying even if it does teach you to only use insert mode for inserting).
@BrodieRobertson
@BrodieRobertson 4 года назад
I'll reframe it, I wanted vim behaviour so in that context it's a bug
@billeterk
@billeterk 3 года назад
Ha. Switching to neovim the first setting I changed was ‘set bs=0’
@PaulBunkey
@PaulBunkey 3 года назад
So... you bringing PowerShell 5.1 goodies into Linux cli experience. Nice.
@BrodieRobertson
@BrodieRobertson 3 года назад
What are you specifically referring to?
@PaulBunkey
@PaulBunkey 3 года назад
@@BrodieRobertson I'm referring to PSReadline, the core module of the Powershell that is providing advanced multiline editing fetures, copy/cut/paste, editor-like navigation with selection, tab completion, Ctrl+Space multichoise from the list using arrow keys, customizable shortcut keys... Also Powershell is natively case-insensitive, so no regex tricks needed to autocomplete some jump-case word.
@MirkoVukusic
@MirkoVukusic 3 года назад
I think you would prefer this as your "man upgrade": export MANPAGER="nvim -c 'set ft=man' -" #nvim is manpager
@GrumpyCrash
@GrumpyCrash 4 года назад
zsh.sourceforge.net/Doc/Release/Options.html#index-GLOBDOTS You can use a shortloop like for i (~/.config/shellconfig/*) source $i The completion doesnt based on manpages; its based on function in $fpath www.strcat.de/zsh/
@xtnctr
@xtnctr 4 года назад
👏
@a_maxed_out_handle_of_30_chars
@a_maxed_out_handle_of_30_chars 4 года назад
what does "typeset -U PATH path" do?
@BrodieRobertson
@BrodieRobertson 4 года назад
I do not remember, I think it was something I took from Luke's config.
@a_maxed_out_handle_of_30_chars
@a_maxed_out_handle_of_30_chars 4 года назад
@@BrodieRobertson yes, I saw it in his config too, but I don't add anything to my path, so I was wondering whether to include it or not
@auntiecarol
@auntiecarol 2 года назад
Oi! I thought your lot were on the Brit side of the 'zee' vs 'zed' debate?!
@cosmo_4785
@cosmo_4785 3 года назад
you should use vim keys for moving in real life
@cobbcoding
@cobbcoding 3 года назад
yooooo im in *investing sounds*
@Colstonewall
@Colstonewall 3 года назад
Wait a second, didn't you do a vid a few weeks later entitled "You Really Don't Need Oh My Zsh And Here's Why (Rant)?" So, you went from loving to hating it in a few weeks? Did I miss something?
@BrodieRobertson
@BrodieRobertson 3 года назад
Oh my zsh and zsh are not the same thing, oh my zsh is a pointless plugin manager for zsh
@Colstonewall
@Colstonewall 3 года назад
@@BrodieRobertson Ah, I see. Thank you for the clarification. I'd never heard of either till yesterday. . . Forgive my ignorance, lol. Thanks man.
@primedynamixx
@primedynamixx 4 года назад
Do you need to know Bash in order to use Zsh?
@BrodieRobertson
@BrodieRobertson 4 года назад
A lot of the knowledge is transferable but you can start with either
@primedynamixx
@primedynamixx 4 года назад
Brodie Robertson I’m trying to learn how to script and I would like to learn with ZSH. Could you recommend a good site to learn from? Thanks for your help!
@etaashmathamsetty7399
@etaashmathamsetty7399 2 года назад
dang he looked real weird back then
@BrodieRobertson
@BrodieRobertson 2 года назад
true
@Whoknowsthatman
@Whoknowsthatman 3 года назад
I’m very sorry but the beard doesn’t look good on you.
@BrodieRobertson
@BrodieRobertson 3 года назад
That's fine
@vaderasss
@vaderasss 4 года назад
Isn’t this the guy ranting about how bloated zsh is in another video? Oh boy, that escalated quite fast I have to say
@BrodieRobertson
@BrodieRobertson 4 года назад
No in that video I'm talking about oh my Zsh the pointless plugin manager, Zsh itself is great
@tetbundy5683
@tetbundy5683 3 года назад
Please shave
@BrodieRobertson
@BrodieRobertson 3 года назад
Nah fam
@ZuluEchoRomeoOscar
@ZuluEchoRomeoOscar 4 года назад
You're English. It's 'zed' not 'zee'. Shee...
@BrodieRobertson
@BrodieRobertson 4 года назад
I'm Australian and here we do whatever we want
@ZuluEchoRomeoOscar
@ZuluEchoRomeoOscar 4 года назад
Fair dinkum. You sound English - my mistook...
@BrodieRobertson
@BrodieRobertson 4 года назад
@@ZuluEchoRomeoOscar I feel like I'm being insulted lol
@faye_isc
@faye_isc 4 года назад
@@BrodieRobertson * *virtual hugs to make everyone happy and stop fighting* *
Далее
Bspwm: Working With Bspc Node Commands And Selectors
20:18
Папины Дочки Наоборот!
24:57
Просмотров 434 тыс.
How to split your drink
00:45
Просмотров 2,1 млн
Bash is Bloated!
11:48
Просмотров 143 тыс.
Arch Linux: Getting Started With ZSH
29:46
Просмотров 72 тыс.
Fish Is A Modern Shell For The Sophisticated User
15:56
Everyone Is Switching To Linux
21:49
Просмотров 87 тыс.
Bash vs ZSH vs Fish: What's the Difference?
13:32
Просмотров 181 тыс.
Fzf: Can Do Far More Than Just Fuzzy Find Your Files
19:36
Was Rust In The Linux Kernel A Mistake?
26:09
Просмотров 133 тыс.
A Linux Shell Prompt That's Out Of This World!
13:30
Просмотров 183 тыс.
Gitlab DELETING Production Databases | Prime Reacts
17:27
Why I Switched Back to Bash, And Why You Should Too
10:42