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

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 ก.ย. 2024

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

  • @icaro.salgado
    @icaro.salgado 3 ปีที่แล้ว +65

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

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

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

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

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

  • @teezettsb
    @teezettsb 2 ปีที่แล้ว +13

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    Neat & elegant minimalist!

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

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

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

    Amazing work man!

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

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

    What's the dotfiles repo?

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

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

  • @cd-stephen
    @cd-stephen 2 ปีที่แล้ว

    love all your content and your presentations

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

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

    Thx it helped me a alot!

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

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

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

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

    What's that shell theme?

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

    what font you use in alacritty?

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

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

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

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

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

  • @RC-Heli835
    @RC-Heli835 ปีที่แล้ว

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

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

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

    Thank you!

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

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

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

  • @ZerkerEOD
    @ZerkerEOD 10 หลายเดือนก่อน

    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)

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

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

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

    How do u put the channel rack in the playlist

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

    what's the over key?

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

      Right arrow key works for me

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

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

    How to bind ctrl+r to fzf?

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

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

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

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

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

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

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

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

    thnks man . oh my zsh is bloat

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

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

    the repo is gone 😢

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

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

  • @chimichurri2612
    @chimichurri2612 11 หลายเดือนก่อน +1

    kepasa

  • @Pyr0100
    @Pyr0100 2 หลายเดือนก่อน

    impossible for no reason

  • @ardi.ansah.09
    @ardi.ansah.09 2 ปีที่แล้ว

    Aoutosuggestions better on fish shell

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

      But it's not POSIX compliant.

  • @mollyesevancese8884
    @mollyesevancese8884 8 วันที่ผ่านมา

    Anderson Ronald Moore Steven Thompson Charles

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

    if you are using stock zsh you are already bloated

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

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

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

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

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

    just use fish XD

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

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

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

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

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

    Hi Chris, What font are You using?

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

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

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

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

    I like your videos bro❤️

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

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

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

    What terminal theme are you using in this video?

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

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

    Based

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

  • @hamburger-fries
    @hamburger-fries 2 ปีที่แล้ว +1

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

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

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

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

  • @JerryHicks-s2f
    @JerryHicks-s2f 16 วันที่ผ่านมา

    White Karen Thompson James Jones John

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

    awesome 👏👏👏

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

    ledge

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

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

  • @HousseinDroubi-o9i
    @HousseinDroubi-o9i 5 หลายเดือนก่อน

    Hello

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

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

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

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

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

  • @kira-fr4ry
    @kira-fr4ry 2 ปีที่แล้ว +2

    useless ?

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

    Man, I love you!!

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

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

    thanks

  • @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: th-cam.com/video/fR4ThXzhQYI/w-d-xo.html . The cheatsheet would be really helpful.

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

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

      It's a directory, not a folder.

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

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

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