zsh - create a minimal config (autosuggestions, syntax highlighting etc..) no oh-my-zsh required

Поделиться
HTML-код
  • Опубликовано: 30 сен 2024
  • НаукаНаука

Комментарии • 146

  • @icaro.salgado
    @icaro.salgado 3 года назад +65

    "I don't like my terminal trying to sell me tshirts" hahahahhaahahahahaahahahahaahahahahhaahahah

  • @devc_
    @devc_ 3 года назад +31

    Very helpful, was looking forward for a video on configuring zsh

  • @parsakzr
    @parsakzr 3 года назад +31

    That's neat! I've been oh-my-zsh-free for a year, but I never thought about organizing it the way you did. Thanks Chris!

  • @teezettsb
    @teezettsb 2 года назад +13

    7:54 : i would recommend setting XDG configuration in /etc/zsh/zshenv, so it is independent from window manager

  • @sebastiantillmann1669
    @sebastiantillmann1669 2 года назад +6

    Did you remove the repo from GitHub?

    • @kacpersagnowski
      @kacpersagnowski 2 года назад

      It seems to have moved to here: github.com/Mach-OS/Machfiles

  • @i_am_ironman_2022
    @i_am_ironman_2022 2 года назад +12

    You are absolutely awesome, not lot of people share what they knew but you are something special brother

  • @visrut7
    @visrut7 3 года назад +12

    Thanks Chris I really appreciate your work. Your channel is hidden gem for me.

  • @Neucher
    @Neucher 3 года назад +6

    Can you please make a similar tutorial for bash as well ? A minimal bash setup with plugins.

  • @jimmyjansen6864
    @jimmyjansen6864 2 года назад +3

    I cannot seem to find your dotfiles anymore, did you make them private since this video?

    • @MichaelDaCreator
      @MichaelDaCreator 2 года назад

      The are still available

    • @skylinefx049
      @skylinefx049 2 года назад

      @@MichaelDaCreator where

    • @MichaelDaCreator
      @MichaelDaCreator 2 года назад

      @@skylinefx049 yeah I'll send you the link in a bit

    • @nathanpw12
      @nathanpw12 2 года назад

      @@MichaelDaCreator what's the name?

    • @RodneyDorville
      @RodneyDorville 2 года назад

      @@MichaelDaCreator Can you send me the link too?

  • @junebugcomputer
    @junebugcomputer 2 года назад +5

    Thank you. This was probably the most helpful zsh configuration video that I have come across. I am using the default Terminal in MacOS with some of the zsh configurations that you mentioned it's working like a charm without the need to install iTerm2 and Oh My Zsh.

  • @ubuntu783
    @ubuntu783 3 года назад +5

    Underrated channel. Thanks for this helpful video.

  • @fernanboxfrias381
    @fernanboxfrias381 3 года назад +5

    Hi Chris, What font are You using?

  • @Flackon
    @Flackon 2 года назад +3

    What's the dotfiles repo?

  • @aquepaique
    @aquepaique 2 года назад +3

    thanks, oh-my-zshell is incredibly bloated, takes like 3 sec to load all the useless garbage, now runs immediatly.

  • @etherweb6796
    @etherweb6796 3 года назад +6

    Still going to watch this for the background knowledge, but I've been very happy with running the zsh configuration script and using powerlevel10k for styling - ditched omyzsh ages ago.

    • @christoffertrebo7150
      @christoffertrebo7150 2 года назад

      how is it? Is it slow or anything? Where can I find it?

    • @etherweb6796
      @etherweb6796 2 года назад +1

      @@christoffertrebo7150 It runs smoothly for me - no noticable lag that I've seen. I use the "pure" mode. Not sure if I can link to it here, but powerlevel10k GitHub typed into Google will find it.

    • @christoffertrebo7150
      @christoffertrebo7150 2 года назад

      @@etherweb6796 thanks bro

  • @rhidlor8577
    @rhidlor8577 2 года назад +2

    any way to disable auto suggestions on invalid commands? at 1:10 it autosuggested cda; i dont want that behavior.

  • @RodneyDorville
    @RodneyDorville 2 года назад +2

    Just discovered your amazing configuration. Where can I find the repo -Machfiles and the dotfiles. Has it gone private? Can someone send me the link? Thanks

  • @devAbdullah
    @devAbdullah 8 месяцев назад +1

    awesome vid . it seems you have removed your functions file in the repo. could you please add back or just reply to me with its content. it would be great and thanks in advanced

    • @chrisatmachine
      @chrisatmachine  8 месяцев назад +1

      the content now lives in a minimal plugin manager at zapzsh.com

  • @Nakhtiar
    @Nakhtiar 3 года назад +2

    Thanks for the tutorial and sources... Omw to ZSH without bloated fanmade stuffs...

  • @mrsansiverius2083
    @mrsansiverius2083 3 года назад +2

    Well well well, looks like i found another Linux youtuber to watch.

  • @hahaheheh0h0
    @hahaheheh0h0 2 года назад +3

    is the repository gone? i can no longer find it

    • @rdb1
      @rdb1 2 года назад +1

      Same

    • @alienmo6653
      @alienmo6653 2 года назад

      It's in his mackfiles

    • @kacpersagnowski
      @kacpersagnowski 2 года назад

      You can find it here: github.com/Mach-OS/Machfiles

  • @komildeveloper2986
    @komildeveloper2986 3 года назад +3

    I like your videos bro❤️

  • @SpenserFL
    @SpenserFL Год назад +2

    So I'm assuming this is now deprecated in favour of using your new plugin manager zap?

    • @chrisatmachine
      @chrisatmachine  Год назад +1

      I think they're both fine solutions. But personally I'm using zap now.

  • @rubempacelli6815
    @rubempacelli6815 2 года назад +2

    This video helped me a lot. I finally get rid of oh-my-zsh. Thank you very much!!
    OBS: Thanks for suggesting me fzf and zoxide. These terminal programs make me ridiculously more efficient! :)

  • @daniellopez7240
    @daniellopez7240 3 года назад +4

    Que genial Cris!!.. consume menos CPU y memoria que ohmyzsh?

    • @chrisatmachine
      @chrisatmachine  3 года назад +4

      No estoy seguro acerca de la CPU y la memoria, pero hace que la configuración sea más mínima y portátil.

    • @daniellopez7240
      @daniellopez7240 3 года назад +2

      @@chrisatmachine muchas gracias Chris, lo probaré, gracias a tus tutoriales deje todo mi neovim bien organizado y súper bien..

  • @ditchcomfort
    @ditchcomfort 3 года назад +2

    What terminal theme are you using in this video?

  • @Termuellinator
    @Termuellinator 2 года назад +2

    Very nice idea with the separate files, and a very nice base to create your own config, thank you! :)
    The only thing that is somewhat odd is that you have an identical zshrc and .zshrc - is there a special reason for this?

  • @itsmechaosguy
    @itsmechaosguy Год назад +2

    thnks man . oh my zsh is bloat

  • @ditchcomfort
    @ditchcomfort 3 года назад +2

    Just stunningly config. I feel I have everything up and up 👍🏻 Thank you for sharing, and finally I got rid of "Oh My Crap" too… 😜

  • @m3hdim3hdi
    @m3hdim3hdi 2 года назад +2

    what font you use in alacritty?

  • @sayanmanna2511
    @sayanmanna2511 2 года назад +1

    I'm getting 'too many open files:... /config/zsh/.zshrc' in mac

  • @chimichurri2612
    @chimichurri2612 11 месяцев назад +1

    kepasa

  • @riolly
    @riolly Год назад

    Barely install a new Linux distro. Suspicious about oh-my-zsh from the get-go, ready to use prezto, and in the end compelled to use Chris plugin manager.

  • @hamburger-fries
    @hamburger-fries 2 года назад +1

    Can you add Powerlevel 10k to this? I seem to be missing something. Awesome video!

  • @Lambdaphile
    @Lambdaphile 3 года назад +2

    What's that shell theme?

  • @piirns
    @piirns 5 месяцев назад

    Stupid out dated video. The least you can do is link the commit from the time of the video in description before you go making huge changes to the repo.

  • @declanmullen5326
    @declanmullen5326 2 года назад +1

    Everything works except for viewing the emojis for git etc. Is there anything you had to install to see that?

    • @declanmullen5326
      @declanmullen5326 2 года назад

      @Mike Chuatak yeah, you have to install a nerd font which has the emojis. He has a video on it that is pretty good :)

  • @mollyesevancese8884
    @mollyesevancese8884 10 дней назад

    Anderson Ronald Moore Steven Thompson Charles

  • @akim5227
    @akim5227 3 года назад +2

    Based

  • @riolly
    @riolly Год назад +1

    I think it's helpful to make the zap video.

  • @ankitkumarsingh9815
    @ankitkumarsingh9815 2 года назад +1

    Take my word, you are underrated. Very helpful video. Thanks a lot.

  • @benary5620
    @benary5620 2 года назад +1

    I thought I liked my zshrc. Now I will re-write it from scratch based on your configuration, so cool! Thanks for the video :)

  • @deadliestcombat6841
    @deadliestcombat6841 3 года назад +2

    Thx it helped me a alot!

  • @Guestz0r
    @Guestz0r Год назад +1

    +1 for the zap update video, would be cool!

  • @laughingvampire7555
    @laughingvampire7555 Месяц назад

    if you are using stock zsh you are already bloated

  • @uu1368
    @uu1368 3 года назад +1

    Thanks, this video is really awesome!!
    Your videos are hidden gem for me.

  • @JerryHicks-s2f
    @JerryHicks-s2f 19 дней назад

    White Karen Thompson James Jones John

  • @RC-Heli835
    @RC-Heli835 Год назад

    Usr share docs oh my zsh seems to get installed by installing zsh

  • @yves415
    @yves415 Год назад

    the repo is gone 😢

  • @rielj
    @rielj 3 года назад +1

    How to bind ctrl+r to fzf?

  • @bartek...
    @bartek... Год назад

    From years I'm trying to get rid off zprezto and move to something like you've done. I guess I'm to lazzy, but after watching this vid, there is no more excuses :)
    Great content!!!!

  • @metamud8686
    @metamud8686 Год назад

    1:24 where the heck or what on earth is the "over" key? I've never even heard of that in 35 years of using a computer? I love the autosuggest feature (I think) .. but I don't have an "over" key...
    *confused....

    • @chrisatmachine
      @chrisatmachine  Год назад

      lol sometimes I say the things I'm thinking in my head but it doesn't match up with reality. It's the right arrow key.

  • @paulkalitsis800
    @paulkalitsis800 Год назад

    Super-great work! I understand that Chris is developing a minimal Zsh plugin manager (Zap Zsh). I'd like to learn the setup, so can someone please send me the cofig files in this vid? Can't seem to find them all in his github page.

  • @oxygenliu7344
    @oxygenliu7344 2 года назад +1

    Neat & elegant minimalist!

  • @leadlearner6391
    @leadlearner6391 Год назад

    hi Chris, I am new to coding; have an old laptop (9yrs) upgraded it; and installed a minimal Debian OS (MX) I have installed ZSH, and cloned your repo into /home/Machfiles . I do not know how to link the Machfiles files with ZSH! can you assist please? thank you

  • @Pyr0100
    @Pyr0100 2 месяца назад

    impossible for no reason

  • @WBPCS
    @WBPCS Год назад

    This is a great video! I have been using bash for a long time now and want to move to zsh, but this oh-my-zsh thing just shows up everywhere... I just don't get it why add an unnecessary extra layer of management

  • @MarcelRobitaille
    @MarcelRobitaille 3 года назад +1

    Could you use async jobs to load slow completions in the background?

    • @chrisatmachine
      @chrisatmachine  3 года назад

      I've seen a async zsh plugin do you have a suggested solution for this? Sounds like a good idea.

    • @MarcelRobitaille
      @MarcelRobitaille 3 года назад

      @@chrisatmachine I did it before to load nvm because it was super slow. I used this: github.com/mafredri/zsh-async. It didn't work perfectly, and I have since switched to fnm because it's just way better, but it should be possible to set something up to load completions asynchronously I think

  • @tonyccorimanya2482
    @tonyccorimanya2482 Год назад

    Fantastic video, but, there isn't the files machfiles for clone. :/ I will wait for the update! thanks

  • @alexandrumatei2150
    @alexandrumatei2150 2 года назад +1

    Amazing work man!

  • @MrCBroz
    @MrCBroz Год назад

    Awesome work! Maybe add a note in the description pointing to your new vid on Zap, as it impacts a lot of what's here

  • @ZerkerEOD
    @ZerkerEOD 11 месяцев назад

    Did you remove a lot from the github repo? I am trying to set this up and when I got to the repo is it not the same anymore (a lot of missing files)

  • @RodrigoStuchi
    @RodrigoStuchi 3 года назад +1

    awesome 👏👏👏

  • @MrNodgrass
    @MrNodgrass 2 года назад +1

    ledge

  • @rauldeandrade
    @rauldeandrade Год назад

    what's the over key?

    • @NickHope
      @NickHope 8 месяцев назад

      Right arrow key works for me

  • @Linuxdirk
    @Linuxdirk Год назад

    Just iterate over, for example, `$XDG_CONFIG_HOME/zsh/plugins.d/` and simply copy your zsh plugin files there?

  • @nabinpun8375
    @nabinpun8375 2 года назад

    DUDE, I got so frustrated 'cause of that problem, thanks a lot!

  • @karthickb1973
    @karthickb1973 2 года назад

    can anyone please tell me what is the file browser that pops every now and then. enjoying qtile and lvim for now.

  • @DragonnSteve
    @DragonnSteve 2 года назад

    Thank for your video, it's really helpful.
    I've been using Zim for a long time and I decided to switch from this plugins manager to the manual installation like you do.
    I copied and paste everything from your config and it works fine, but.. I was surprised by speed time.
    I use zsh-autosuggestions, fast-syntax-highlighting and powerlevel10k prompt plugins.
    Benchmarking is pretty easy:
    for i in $(seq 1 10); do /usr/bin/time /bin/zsh -i -c exit; done;
    When I use manual installation, like you do, it takes around 0.126-0.130 milliseconds to startup.
    But Zim takes 0.115 - 0.119 milliseconds.
    Hence, there is a very little difference between this two methods and in my experiment, manual installation is not faster than Zim

  • @repoles
    @repoles 2 года назад

    Wow! I love the idea of zsh_add_plugin function. Thank you for sharing!

  • @ditchcomfort
    @ditchcomfort 3 года назад

    I did figure that out (I think) 😉 But.. when you was talking about plugins, do I need to download any repos or can I just simply copy/paste into the zshrc file and everything will work?

  • @nickstill2666
    @nickstill2666 Год назад +1

    "you can see it suggested .config/nvim because I regularly cd into that"
    Same I really felt that lol

  • @HousseinDroubi-o9i
    @HousseinDroubi-o9i 5 месяцев назад

    Hello

  • @justscribeyourthought9855
    @justscribeyourthought9855 2 года назад

    How do u put the channel rack in the playlist

  • @windowsrefund
    @windowsrefund 2 года назад +1

    wtf does "press the over key" mean?

    • @chrisatmachine
      @chrisatmachine  2 года назад

      lol did I say that?

    • @nodidog
      @nodidog 2 года назад +1

      He means the right arrow, if you're asking about completions.

    • @VulcanOnWheels
      @VulcanOnWheels 5 месяцев назад

      @@nodidog I believe it's the Tab key.

  • @afonsosalbrecht
    @afonsosalbrecht 2 года назад

    thanks God! no oh-my-zsh, I just hate this plugin/framework whatever those apple fan boys use. oh-my-zsh is just for noobs

    • @NebucadLaVey
      @NebucadLaVey 2 года назад +2

      I'm pretty sure you was one of "oh-my-zsh" User anyway. No need to talk bad about it. If you are an expert like you pretend, you won't watch this tutorial.

  • @yourdadsbestfriend7101
    @yourdadsbestfriend7101 3 года назад +4

    this is crazy, as soon as i start to try and configure my zsh. thanks chris!

  • @livb4139
    @livb4139 2 года назад

    14:45 what's the name of this program? I can't understand the spelling, xoxide?

  • @BabyDproductions
    @BabyDproductions Год назад

    Thank you! In theory could one have this all in .zshrc rather than multiple directories? I'm new to dotfiles but this was very helpful.

    • @helloimatapir
      @helloimatapir Год назад

      It can all be put .zshrc and sourced. He separates it into multiple files / directories just to keep "home" clean.

  • @kevinzheng3987
    @kevinzheng3987 Год назад

    Awesome guide btw! Just curious what shell prompt are you using?

    • @techtude
      @techtude Год назад

      He is using a customer prompt you can create the same by copy paste from the video zshrc
      Btw he made a more advanced plugin manager called "zap⚡"

  • @cd-stephen
    @cd-stephen 2 года назад

    love all your content and your presentations

  • @samirxtz250
    @samirxtz250 Год назад

    Man, I love you!!

  • @nishantgaglani1654
    @nishantgaglani1654 2 года назад

    The video is really helpful. But, I am unable to find the special unicode character mentioned just before the branch name, it shows a rectangle box in Git repo. Could someone help me with this?

    • @chrisatmachine
      @chrisatmachine  2 года назад

      you need a nerd font

    • @nishantgaglani1654
      @nishantgaglani1654 2 года назад

      Thanks Chris! In case anyone faces a similar issue, please checkout Chris's video on Nerd Font: ruclips.net/video/fR4ThXzhQYI/видео.html . The cheatsheet would be really helpful.

  • @ardi.ansah.09
    @ardi.ansah.09 2 года назад

    Aoutosuggestions better on fish shell

    • @folksurvival
      @folksurvival 2 года назад

      But it's not POSIX compliant.

  • @cailrambler4907
    @cailrambler4907 2 года назад

    Thank you!

  • @kira-fr4ry
    @kira-fr4ry 2 года назад +2

    useless ?

  • @mahabooblinux
    @mahabooblinux 2 года назад

    thanks

  • @NebucadLaVey
    @NebucadLaVey 2 года назад +1

    I 've had used oh-my-zsh only because i like the fancy prompt. than i figured out, it's a "Plugin" called powerlevel10k and you are able to install it purely ^.^
    You just need to clone the repository and source the theme-file inside your .zshrc. - That's all!
    I'm not pretty sure if you need a PlugIn Manager in zsh at all, even if its 9 rows long. Putting files into folders and sourcing them inside .zshrc makes things complicated and to be honest, i don't realy see a big different between your "zsh setup" and the hated "oh-my-zsh" setup, both are wired for pepople who don't want to re-engeneering things others have had coded. Might be easy for you but not for all.
    I like it simple, .zshrc is simple! One place everything you need and have is inside this file. You'd forgot to mention .zprofile is only loadet at login just "one" thing to keep in mind if somebody will use your setup.

  • @ditchcomfort
    @ditchcomfort 3 года назад +1

    Amazingly helpful video 👍🏻 Just one question where do you put your .xprofile (zprofile in my case)? If you don’t want the file in a folder named x

  • @gerydony6531
    @gerydony6531 2 года назад

    You can just add `bindkey -v` in your zshrc to enable vim mode lol. When you installed zsh and use it for the first time, it will guide you to some configuration options that you want, and vim mode is there.

  • @yadusolparterre
    @yadusolparterre 2 года назад

    Thanks for the great video ! Unfortunately, zsh-autosuggestions adds a huge lag on the terminal. There is no way the terminal can be used normally when this plugin is active. Any suggestion to replace it / fix it ? Thanks !

  • @amit12000
    @amit12000 2 года назад

    Great Chris it work very fine on ubuntu on WSL

    • @rdb1
      @rdb1 2 года назад

      Hey, could share the files? He the repo seems to be gone

  • @phantomofficial
    @phantomofficial 2 года назад

    How's your terminal fullscreen? Is that emacs or something?

    • @davidwillian680
      @davidwillian680 2 года назад +1

      On Iterm2 do it:
      Profiles -> Window
      Transparency: 30
      Style: Full Screen
      Screen: Main Screen
      and then press command + enter.

    • @videosathish
      @videosathish Год назад

      He must be using a tiling window manager

  • @afonsosalbrecht
    @afonsosalbrecht 2 года назад

    like, you video could have been made in less than 5min tbh.

  • @davidh.4944
    @davidh.4944 Год назад

    "PLUGIN_NAME=$(echo $1 | cut -d "/" -f 2)"
    Uffh, I'm new to zsh, but as a long-time bash user, the purist in me just cringes at inefficient lines like this.
    This kind of thing is precisely what built-in parameter expansion was made for.
    "PLUGIN_NAME=${1#*/}"
    Also "fpath+=$( ls /_* )". You should be able to just use globbing alone.

    • @chrisatmachine
      @chrisatmachine  Год назад

      thanks! I'll take a look at this

    • @davidh.4944
      @davidh.4944 Год назад

      @@chrisatmachine And thank you for taking my suggestions in the right spirit.
      Probably the one resource that helped me the most in learning scripting is Greg's Wiki, particularly the BashFAQ and BashPitfalls lists. Although, as the page names imply, bash is the primary focus, a majority of what is written there is applicable to all shells. I highly recommend reading through them.

  • @RonnieNissan
    @RonnieNissan 3 года назад +1

    Fish + fundle is the way to go

    • @folksurvival
      @folksurvival 3 года назад +10

      zsh > fish

    • @ditchcomfort
      @ditchcomfort 3 года назад +1

      You are crazy if you set Fish as default shell, IMO.

    • @RonnieNissan
      @RonnieNissan 3 года назад

      @@ditchcomfort been doing it for two years now

  • @abdullahkhaled6162
    @abdullahkhaled6162 3 года назад

    just use fish XD