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

  Рет қаралды 119,448

chris@machine

chris@machine

Күн бұрын

SUPPORT THE CHANNEL
💳 Patreon: / chrisatmachine
💰 Paypal: paypal.me/chrisatmachine
👕 Merch: shop.spreadshirt.com/chrisatm...
SOCIAL MEDIA
🕸️ Website: www.chrisatmachine.com
🐦 Twitter: / chrisatmachine
💻 Github: github.com/ChristianChiarulli ⬅️ dotfiles are here
📺 Odysee: odysee.com/$/invite/@chrisatm...
💬 Matrix: matrix.to/#/+atmachine:matrix...
📡 Twitch: / chrisatmachine
🔌 Discord: / discord
₿ DONATE CRYPTO
Bitcoin: bc1qlw9t04evwvvlgkwkxf3cm9mfk6zgmy09sp4uja
Ethereum: 0x31202eF4Ce3d03c1B5111Bc388f937e7b17dd164
Litecoin: ltc1qmhxvmr9h3hpc226aeqj9sadwjn3gl0nh5qsvkf
Polkadot: 12pxctmVV3HBKqfpnPbgqznKHdpFbihVENH2VJU6Z5HsaD1S
Chainlink: 0x31202eF4Ce3d03c1B5111Bc388f937e7b17dd164
Bitcoin Cash: qqz56dl270wx04z4x8y42aft39ptpksjuggmel0hz6
XRP: raUaxdWMst1Eb96nACTvJTRWgtmsRQpwHk
Stellar: GD7PCULOCC4DLRJN6TJSWFTETDWL4D6URHXEBFX4B4RJQN4B5T7XZ5AU

Пікірлер: 142
@icaro.salgado
@icaro.salgado 3 жыл бұрын
"I don't like my terminal trying to sell me tshirts" hahahahhaahahahahaahahahahaahahahahhaahahah
@fernandocarvalhopacheco
@fernandocarvalhopacheco Жыл бұрын
what about lunar-vim tshirts? hahahah
@parsakzr
@parsakzr 3 жыл бұрын
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!
@junebugcomputer
@junebugcomputer Жыл бұрын
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.
@i_am_ironman_2022
@i_am_ironman_2022 2 жыл бұрын
You are absolutely awesome, not lot of people share what they knew but you are something special brother
@dailybit300
@dailybit300 3 жыл бұрын
Thanks Chris I really appreciate your work. Your channel is hidden gem for me.
@devc_
@devc_ 3 жыл бұрын
Very helpful, was looking forward for a video on configuring zsh
@fernanboxfrias381
@fernanboxfrias381 3 жыл бұрын
Hi binx!
@ubuntu783
@ubuntu783 3 жыл бұрын
Underrated channel. Thanks for this helpful video.
@ankitkumarsingh9815
@ankitkumarsingh9815 2 жыл бұрын
Take my word, you are underrated. Very helpful video. Thanks a lot.
@uu1368
@uu1368 3 жыл бұрын
Thanks, this video is really awesome!! Your videos are hidden gem for me.
@teezettsb
@teezettsb 2 жыл бұрын
7:54 : i would recommend setting XDG configuration in /etc/zsh/zshenv, so it is independent from window manager
@repoles
@repoles 2 жыл бұрын
Wow! I love the idea of zsh_add_plugin function. Thank you for sharing!
@benary5620
@benary5620 2 жыл бұрын
I thought I liked my zshrc. Now I will re-write it from scratch based on your configuration, so cool! Thanks for the video :)
@alexandrumatei2150
@alexandrumatei2150 2 жыл бұрын
Amazing work man!
@ditchcomfort
@ditchcomfort 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… 😜
@oxygenliu7344
@oxygenliu7344 2 жыл бұрын
Neat & elegant minimalist!
@rubempacelli6815
@rubempacelli6815 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! :)
@cd-stephen
@cd-stephen Жыл бұрын
love all your content and your presentations
@yourdadsbestfriend7101
@yourdadsbestfriend7101 3 жыл бұрын
this is crazy, as soon as i start to try and configure my zsh. thanks chris!
@lucascubilla869
@lucascubilla869 3 жыл бұрын
Same here, perfect timing!
@samirhardstyle
@samirhardstyle Жыл бұрын
Man, I love you!!
@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
@komildeveloper2986
@komildeveloper2986 3 жыл бұрын
I like your videos bro❤️
@deadliestcombat6841
@deadliestcombat6841 3 жыл бұрын
Thx it helped me a alot!
@RodrigoStuchi
@RodrigoStuchi 2 жыл бұрын
awesome 👏👏👏
@cailrambler4907
@cailrambler4907 2 жыл бұрын
Thank you!
@Termuellinator
@Termuellinator 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?
@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
@etherweb6796
@etherweb6796 3 жыл бұрын
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 жыл бұрын
@@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
@ditchcomfort
@ditchcomfort 2 жыл бұрын
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?
@Guestz0r
@Guestz0r Жыл бұрын
+1 for the zap update video, would be cool!
@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!!!!
@Nakhtiar
@Nakhtiar 2 жыл бұрын
Thanks for the tutorial and sources... Omw to ZSH without bloated fanmade stuffs...
@mahabooblinux
@mahabooblinux 2 жыл бұрын
thanks
@Neucher
@Neucher 3 жыл бұрын
Can you please make a similar tutorial for bash as well ? A minimal bash setup with plugins.
@nabinpun8375
@nabinpun8375 Жыл бұрын
DUDE, I got so frustrated 'cause of that problem, thanks a lot!
@RodneyDorville
@RodneyDorville Жыл бұрын
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
@akim5227
@akim5227 2 жыл бұрын
Based
@kevinzheng3987
@kevinzheng3987 9 ай бұрын
Awesome guide btw! Just curious what shell prompt are you using?
@techtude
@techtude 9 ай бұрын
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⚡"
@ditchcomfort
@ditchcomfort 2 жыл бұрын
What terminal theme are you using in this video?
@hamburger-fries
@hamburger-fries 2 жыл бұрын
Can you add Powerlevel 10k to this? I seem to be missing something. Awesome video!
@m3hdim3hdi
@m3hdim3hdi 2 жыл бұрын
what font you use in alacritty?
@mrsansiverius2083
@mrsansiverius2083 3 жыл бұрын
Well well well, looks like i found another Linux youtuber to watch.
@Lambdaphile
@Lambdaphile 3 жыл бұрын
What's that shell theme?
@Flackon
@Flackon Жыл бұрын
What's the dotfiles repo?
@rhidlor8577
@rhidlor8577 2 жыл бұрын
any way to disable auto suggestions on invalid commands? at 1:10 it autosuggested cda; i dont want that behavior.
@daniellopez7240
@daniellopez7240 3 жыл бұрын
Que genial Cris!!.. consume menos CPU y memoria que ohmyzsh?
@chrisatmachine
@chrisatmachine 3 жыл бұрын
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 жыл бұрын
@@chrisatmachine muchas gracias Chris, lo probaré, gracias a tus tutoriales deje todo mi neovim bien organizado y súper bien..
@user-lx1fc6ii9o
@user-lx1fc6ii9o Жыл бұрын
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
@fernanboxfrias381
@fernanboxfrias381 3 жыл бұрын
Hi Chris, What font are You using?
@chrisatmachine
@chrisatmachine 3 жыл бұрын
hack
@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.
@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.
@justscribeyourthought9855
@justscribeyourthought9855 Жыл бұрын
How do u put the channel rack in the playlist
@tonyccorimanya2482
@tonyccorimanya2482 Жыл бұрын
Fantastic video, but, there isn't the files machfiles for clone. :/ I will wait for the update! thanks
@ZerkerEOD
@ZerkerEOD 7 ай бұрын
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)
@rielj
@rielj 3 жыл бұрын
How to bind ctrl+r to fzf?
@ditchcomfort
@ditchcomfort 2 жыл бұрын
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.
@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.
@aquepaique
@aquepaique 2 жыл бұрын
thanks, oh-my-zshell is incredibly bloated, takes like 3 sec to load all the useless garbage, now runs immediatly.
@leadlearner6391
@leadlearner6391 9 ай бұрын
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
@riolly
@riolly Жыл бұрын
I think it's helpful to make the zap video.
@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 жыл бұрын
I'm getting 'too many open files:... /config/zsh/.zshrc' in mac
@RC-Heli835
@RC-Heli835 Жыл бұрын
Usr share docs oh my zsh seems to get installed by installing zsh
@MarcelRobitaille
@MarcelRobitaille 3 жыл бұрын
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
@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
@sebastiantillmann1669
@sebastiantillmann1669 2 жыл бұрын
Did you remove the repo from GitHub?
@kacpersagnowski
@kacpersagnowski Жыл бұрын
It seems to have moved to here: github.com/Mach-OS/Machfiles
@SpenserFL
@SpenserFL Жыл бұрын
So I'm assuming this is now deprecated in favour of using your new plugin manager zap?
@chrisatmachine
@chrisatmachine Жыл бұрын
I think they're both fine solutions. But personally I'm using zap now.
@declanmullen5326
@declanmullen5326 2 жыл бұрын
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 :)
@nishantgaglani1654
@nishantgaglani1654 Жыл бұрын
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 Жыл бұрын
you need a nerd font
@nishantgaglani1654
@nishantgaglani1654 Жыл бұрын
Thanks Chris! In case anyone faces a similar issue, please checkout Chris's video on Nerd Font: kzbin.info/www/bejne/nIOXhZuOr82Ej6s . The cheatsheet would be really helpful.
@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 !
@jimmyjansen6864
@jimmyjansen6864 Жыл бұрын
I cannot seem to find your dotfiles anymore, did you make them private since this video?
@MichaelDaCreator
@MichaelDaCreator Жыл бұрын
The are still available
@skylinefx049
@skylinefx049 Жыл бұрын
@@MichaelDaCreator where
@MichaelDaCreator
@MichaelDaCreator Жыл бұрын
@@skylinefx049 yeah I'll send you the link in a bit
@nathanpw12
@nathanpw12 Жыл бұрын
@@MichaelDaCreator what's the name?
@RodneyDorville
@RodneyDorville Жыл бұрын
@@MichaelDaCreator Can you send me the link too?
@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.
@itsmechaosguy
@itsmechaosguy Жыл бұрын
thnks man . oh my zsh is bloat
@livb4139
@livb4139 Жыл бұрын
14:45 what's the name of this program? I can't understand the spelling, xoxide?
@akshitthakur3842
@akshitthakur3842 Жыл бұрын
zoxide
@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.
@rauldeandrade
@rauldeandrade Жыл бұрын
what's the over key?
@NickHope
@NickHope 5 ай бұрын
Right arrow key works for me
@hahaheheh0h0
@hahaheheh0h0 2 жыл бұрын
is the repository gone? i can no longer find it
@rdb1
@rdb1 2 жыл бұрын
Same
@alienmo6653
@alienmo6653 2 жыл бұрын
It's in his mackfiles
@kacpersagnowski
@kacpersagnowski Жыл бұрын
You can find it here: github.com/Mach-OS/Machfiles
@MrNodgrass
@MrNodgrass 2 жыл бұрын
ledge
@devAbdullah
@devAbdullah 5 ай бұрын
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 5 ай бұрын
the content now lives in a minimal plugin manager at zapzsh.com
@phantomofficial
@phantomofficial 2 жыл бұрын
How's your terminal fullscreen? Is that emacs or something?
@davidwillian680
@davidwillian680 2 жыл бұрын
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
@NebucadLaVey
@NebucadLaVey 2 жыл бұрын
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.
@user-kh6rp6yx1j
@user-kh6rp6yx1j 2 ай бұрын
Hello
@chimichurri2612
@chimichurri2612 8 ай бұрын
kepasa
@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 жыл бұрын
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.
@yves415
@yves415 Жыл бұрын
the repo is gone 😢
@windowsrefund
@windowsrefund 2 жыл бұрын
wtf does "press the over key" mean?
@chrisatmachine
@chrisatmachine 2 жыл бұрын
lol did I say that?
@nodidog
@nodidog 2 жыл бұрын
He means the right arrow, if you're asking about completions.
@VulcanOnWheels
@VulcanOnWheels 2 ай бұрын
@@nodidog I believe it's the Tab key.
@nickstill2666
@nickstill2666 Жыл бұрын
"you can see it suggested .config/nvim because I regularly cd into that" Same I really felt that lol
@ardiansah5621
@ardiansah5621 2 жыл бұрын
Aoutosuggestions better on fish shell
@folksurvival
@folksurvival 2 жыл бұрын
But it's not POSIX compliant.
@RonnieNissan
@RonnieNissan 3 жыл бұрын
Fish + fundle is the way to go
@folksurvival
@folksurvival 3 жыл бұрын
zsh > fish
@ditchcomfort
@ditchcomfort 2 жыл бұрын
You are crazy if you set Fish as default shell, IMO.
@RonnieNissan
@RonnieNissan 2 жыл бұрын
@@ditchcomfort been doing it for two years now
@kira-fr4ry
@kira-fr4ry 2 жыл бұрын
useless ?
@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
@piirns
@piirns 2 ай бұрын
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.
@Linuxdirk
@Linuxdirk Жыл бұрын
Just iterate over, for example, `$XDG_CONFIG_HOME/zsh/plugins.d/` and simply copy your zsh plugin files there?
Manage your dotfiles across multiple machines with GNU Stow and Git
12:27
Bash vs ZSH vs Fish: What's the Difference?
13:32
Eric Murphy
Рет қаралды 158 М.
I’m just a kid 🥹🥰 LeoNata family #shorts
00:12
LeoNata Family
Рет қаралды 19 МЛН
NERF WAR HEAVY: Drone Battle!
00:30
MacDannyGun
Рет қаралды 28 МЛН
Каха ограбил банк
01:00
К-Media
Рет қаралды 10 МЛН
The Top 5 ZSH Plugins I CAN'T Live Without!
9:53
Eric Murphy
Рет қаралды 45 М.
Set up a Mac in 2024 for Power Users and Developers
1:00:34
Syntax
Рет қаралды 259 М.
How to Do 90% of What Plugins Do (With Just Vim)
1:14:03
thoughtbot
Рет қаралды 870 М.
Why I Switched Back to Bash, And Why You Should Too
10:42
The Linux Cast
Рет қаралды 33 М.
How To Make Your Boring macOS Terminal Amazing With Alacritty
16:33
Josean Martinez
Рет қаралды 121 М.
Tmux has forever changed the way I write code.
13:30
Dreams of Code
Рет қаралды 920 М.
My AMAZING Terminal Setup - Hyper, Oh My Zsh, Fig.io, and More!
17:37
This Zsh config is perhaps my favorite one yet.
17:24
Dreams of Autonomy
Рет қаралды 150 М.
Урна с айфонами!
0:30
По ту сторону Гугла
Рет қаралды 7 МЛН
#miniphone
0:16
Miniphone
Рет қаралды 3,7 МЛН