My current zshrc: gist.github.co... Website: lukesmith.xyz Donate: lukesmith.xyz/...
Пікірлер: 356
@LukeSmithxyz3 жыл бұрын
URGENT! Read this: lukesmith.xyz/deletion
@anantgupta79163 жыл бұрын
I know...
@abhileshxd6213 жыл бұрын
KZbin is such a fuckup nowadays.
@monara973 жыл бұрын
make a new youtube channel. get help from fellow youtubers. most ppl won't bother about other platforms.
@kickbuttowsk2i5 жыл бұрын
I am a simple man. When I see luke videos, I watch and copy his config.
@danilovilasboas5 жыл бұрын
That's me in a nutshell.
@cristubek24164 жыл бұрын
A simple man does make his life as simple as possible, nothing more. What's simpler than copying a file from a trustful guy like Luke?
@abcl06534 жыл бұрын
so where can i copy his config?
@danilovilasboas4 жыл бұрын
@@abcl0653 github.com/LukeSmithxyz/voidrice
@francescominnocci4 жыл бұрын
Yo guys how does he zoom in the sheel smoothly? Is it "^+"?
@oddbob62305 жыл бұрын
You know it's a Zoomer shell, as the next macOS update Catalina will replace Bash with Zsh.
@ThaEzioAuditore5 жыл бұрын
Is this for real ? lol
@bitnatures5 жыл бұрын
@@tarekali7064 I mean good on them for disabling 32-bit. It's been how many years?
@bitnatures5 жыл бұрын
@@tarekali7064 this is true but 64-bit has been defacto for a while and for good reasons. Apple has made a good decision especially since the focus on productivity. Also most likely if you game on Mac you are running a Windows VM or Apples VM system. Supporting 32-bit is just a hassle and a security risk in some scenarios.
@atidyshirt5 жыл бұрын
@@tarekali7064 unfortunately this means bias fx won't work for me :(, everything else is all g tho
@stoicfloor3 жыл бұрын
Very useful config! I especially like the "Change cursor shape for different vi modes" part. Only a true Vi user can appreciate and come up with that. Thanks Luke!
@MrPolluxxxx5 жыл бұрын
Luke never came back to the internet. He turned half-boomer, half-luddite and ranted forever in the woods. Although he wished for minimalism, he couldn't subtract his own existance. So eventually, he stopped thinking.
@etis3983 жыл бұрын
🚘
@SriHarshaChilakapati4 жыл бұрын
What I like in zsh is that I can type vi s/m/j/c/g/s/M and press Tab to have it expanded to vi src/main/java/com/goharsha/sesl/Main.java automatically. Very very handy when dealing with Git diffs and edit conflicted files or add individual files with patches.
@edwardgray87825 жыл бұрын
I just realized I've been watching you for a year. Glad you're alive again, man.
@cookiedestroyer4025 жыл бұрын
But Luke since you've been gone we've given up on the vim meme. Now Emacs is by best friend.
@douwehuysmans59595 жыл бұрын
@@guestimator121 Actually WW2 was started by an Australian fellow called Steve
@stu31315 жыл бұрын
Fuck Steve
@tomedwards42975 жыл бұрын
Vi-vi-vi is the editor of the beast.
@Thorhian5 жыл бұрын
Eh, I use both, and I use Doom Emacs (or spacemacs when I have to because reasons) when I use Emacs.
5 жыл бұрын
Ed is the standard text editor.
@constantchanger5 жыл бұрын
You don't need to type "cd " in zsh, you only need to type the path itself (see AUTO_CD in 'man zshoptions'). And what's more, since the typed path will autocomplete, you would only type for example "/e/c/i" instead of "cd /etc/cups/interfaces" or similar.
@netrezv4 жыл бұрын
Bash supports this too btw
@gardenapple5 жыл бұрын
Is Luke's anprim internet finally good enough to upload regularly?
@strakhov2 жыл бұрын
Thank you so much, that was helpful! For hjkl navigation, I think it makes more sense to remap Alt+hjkl to behave like arrows on the OS level rather than setting up every app. On Windows it's easily done with PowerToys, on Linux you have xkb.
@stu31315 жыл бұрын
God bless, Luke. Hope you're well. Thanks for the continuous videos, helping me hone my craft.
@singha3605 жыл бұрын
I love you Lenin ❤️
@Yas-gs8cm5 жыл бұрын
Prophet came to release us from demonic Oh-My-Zsh config!
@ZethGamer5 жыл бұрын
Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away. That's why I love vlarbs
@ac130kz5 жыл бұрын
export BROWSER=brave oh, no
@EliteTester5 жыл бұрын
he fell for it
@dhiegov5 жыл бұрын
where did you see it?
@_yourNameHere__5 жыл бұрын
What does that mean?
@awacs3373 жыл бұрын
@@_yourNameHere__ Exporting browser history I think..
@numairdubas26883 жыл бұрын
@@awacs337 just means his default browser is brave
@stellarorbit13415 жыл бұрын
I love watching Luke do things I will never do.
@dephy20032 жыл бұрын
Thank you for your video. I spent hours trying to find a simple answer that every other page over complicated or skipped over.
@gbroton5 жыл бұрын
You forgot about cool option, I'm not sure if it is by default but if you enter "d" command it gives you history of all used directories, and than using num buttons you can easily navigate to it.
@sasakanjuh76605 жыл бұрын
Edit-and-execute-command (feature to open current command in $EDITOR) actually exists in bash as well, and it's bind to Ctrl-x + Ctrl-e by default :)
@Keenencates5 жыл бұрын
Thanks Luke! I honestly didn't know how cool zsh was until I saw this
@towesc3 жыл бұрын
thanks man for sharing. I love the lf key shortcut integration to navigate to a folder, it went straight into my zsh config, brilliant.
@MattyFez5 жыл бұрын
My my, how the times have changed. Also, will you do an ed tutorial? It's the standard editor you know
5 жыл бұрын
Indeed. Ed is the best (and standard) text editor. Every time my monitor malfunctions and I only have my line matrix printer as the standard output, ed comes to the rescue and enables me to continue writing my FORTRAN code as if nothing had happened. I'd be lost without ed. I have no need for this "Vi" nonsense. It does not even have the quit command.
@swirl69963 жыл бұрын
@ yes it does lol
@tigrankhachaturian89832 жыл бұрын
@ ahah, thanks for a good laugh
@supertech83954 жыл бұрын
Can you explain how did you set up your color scheme? Is it from zsh or just terminal settings?
@nilsirl5 жыл бұрын
Your thing to have the block cursor seems a bit bloated. You can probably use the following (or a variant of it for zle): set vi-ins-mode-string \1\e[6 q\2 set vi-cmd-mode-string \1\e[2 q\2
@iVedett5 жыл бұрын
Doesnt work for me. it gives an error: bad pattern 1e[6
@tomedwards42975 жыл бұрын
Luke, please know that you can actually cd into the previous directory you were in using 'cd -' - no need for the lfcd function!
@tejasn38353 жыл бұрын
hey luke, you should try 'fasd' truly life changing
@mitube4u4 жыл бұрын
I totally new to Zsh and Oh My Zsh, so please excuse any dumb questions. But what is the feature being used when you're in VIM and it's showing the status like the line number, the normal and visual mode and the bottom on your window.
@mitube4u4 жыл бұрын
Actually never-mind that above question. I was able to figure it out and install it. Arline for VIM.
@ltxr99735 жыл бұрын
He has finally embraced the ZSH!
@anm45005 жыл бұрын
my problem with shells other than bash is that each time i install something new it needs source .zshrc for tab completion to recognize it
@Mathisen825 жыл бұрын
hash -r
@anm45005 жыл бұрын
@@Mathisen82 can u explain this plz. i don't have access to my system right now
@Mankepanke5 жыл бұрын
Run "rehash", it makes the shell look again in your PATH and update the autocomplete cache.
@Mathisen825 жыл бұрын
@@anm4500 already answerd i see hash -r is same as rehash
@Pumpkin-Link5 жыл бұрын
@@Mathisen82 shoudnt zsh make rehash run automatically by the package manager when you install stuff? like when you run apt install and it says "processing triggers for man-db, mime-support, dkms, etc."
@jonnykopp4 жыл бұрын
Is there a plugin that just kicks off an instance of nvim when the shell starts that just sits there available to other plugins via gRCP? So anything can ask a nvim instance to work on a buffer or fully embed in a terminal ncurses app as a widget or something?
@harogaston4 жыл бұрын
You are missing arguably the best plugin which is zsh-autosuggestions !!
@killistan3 жыл бұрын
That zle-keymap-select() function is crying to be implemented as a case statement -- it'll be easier to read and generally will run faster.
@しげお-i1l5 жыл бұрын
Thought my zsh config was perfect until now. Thanks for the tips
@med50325 жыл бұрын
He looks like Master Roshi from DB.
@yoshi3145 жыл бұрын
been using zsh for years, i like it for superior completion features. the rest is a nice bonus.
@RadionPrime5 жыл бұрын
Sup Luke, are you planning to do new not related podcast?
@romydrah56065 жыл бұрын
Yes, do one on roads
@person8005 жыл бұрын
"might as well just use python as your shell" - ok, hold my xonsh.
@SArthur2214 жыл бұрын
the thing to keep in mind about zsh is that it's not POSIX compliant. For example, $ < filename.txt isn't POSIX and forgetting that doesn't work in a POSIX shell can be really easy when you use it all the time.
@philippelaferriere26613 жыл бұрын
When I type `ls `, I get "zsh: do you wish to see all 142 possibilities (71 lines)?". If I hit , I then fall into the same menu as Luke. Any tips on how to get rid of this initial prompt? On Ubuntu 20.04
@sabio2344 жыл бұрын
What zsh theme and font are you using ? This looks so good
@arrebator4 жыл бұрын
Where is the video, Lebowski???
@truetrueman6804 жыл бұрын
How can I config my zshrc list? I've noticed that the file is under different folder on the computer (iMac). Which one can I modify without jeopardizing my OS X?
@marekstepanek32245 жыл бұрын
Great video! Just installed zsh-syntax-highlighting. Fantastic. Why you didn't tell me that earlier :-) Downloaded also your config file to peck out some raisins (German expression, don't know whether it works in English too). Certainly I will enable the vim keybindings ... Thank you again!
@X3MVAN Жыл бұрын
"Change inside quotes" actually works with zsh-vi-mode plugin
@al-du6lb4 жыл бұрын
been running your config for like a month. Lovin it.
@str0g3 жыл бұрын
did you make a video about the powerline that you are using?
@craterface123 жыл бұрын
My main gripe with fish shell is that I always forget that commands that I copy from online won't work because of the syntax differences from bash
@Luxcium4 жыл бұрын
What’s the lf command ? I don’t know if it’s explained in an other video because I am new here 😄
@bilyzhuang9242 Жыл бұрын
Thank you for this detailed introduction and tutorial of configuration .
@The1wsx105 жыл бұрын
i used zsh for a while. spent ages setting it up and everything. i eventually got rid of it because it is very slow. the worst offender was if i tried to tab complete a git command it would hang and ignore ^C for several seconds. im pretty sure all the extras are implemented in shell, (try set -x)
@thytom85345 жыл бұрын
Two uploads in the same week, this is a blessed time. I wonder what the average upload time to youtube is at the boomer shack...
@flamendless5 жыл бұрын
After you press ctrl - e to enter vim buffer, how do you return to the terminal? Certainly not :q or :bd right? Or is it ctrl+z?
@chris-ew9wl4 жыл бұрын
Hey Luke, I happen to stumble upon this video because I thought that drawing was funny lol. So I use zsh before but switch to shell because zsh was a bit heavy for my taste. Probably because I had so many plugins installed. However, that's where the beauty of fish lies, all of those functionality/plugins you installed in zsh are all built in in fish. Zsh is just playing catch up to fish, re-implementing its features via plugins, bottom line, it's slower than fish. "You can't run shell scripts in fish" I ran bash scripts all the time, it only needs the shebang `#!/bin/bash`, if that somewhat won't work, there's `$ bash script.sh` Since most of the things I use zsh for fish have it built in, (since they just copied it from fish), I only have z as plugin and recently `pure` which adds a bunch of things like `>` changes to `
@code88604 жыл бұрын
I'm using vifm instead of lf, it's more customizable and the combination with the vi-mode is awesome. It's also really fast. Actually I switched from ranger to vifm because it was so slow...
@feschber4 жыл бұрын
I know this video is kind of old, but have you ever checked out oh-my-zsh since? I cant find a video at least so definitely go check that out if you haven't done that already!
@HadToChangeMyName_YoutubeSucks3 жыл бұрын
I've been running zsh for quite some time and didn't know a couple of these things. The vi mode was one and I was very happy to have that, but color me stupid, figured out esc got me into normal mode but couldn't figure out how to get back into insert mode. Actually googled it and when I saw the answer I slapped myself. I've used vim for years, but in my defense I'd had almost half a beer.
@ReneKnuvers74rk5 жыл бұрын
Where is fzf in this picture?
@BrunusRicieri5 жыл бұрын
The best shell is Plan 9's rc, with one caveat: it's not possible to not export shell variables to the environment... but I recommend you try it nonetheless. I makes the bourne shell feel retarted afterwards.
@ybhall4 жыл бұрын
Luke Smith, how do you deal with esc + dot in the terminal when in vi-mode? I want to use vi-mode, but I use esc + dot so often, I can't live without it. The hacky solutions that people suggest online don't cycle through like esc + dot does.
@pribeirorib5 жыл бұрын
thank god you're back
@leviticus89305 жыл бұрын
What kind of internet you got? I live in the backwoods too, and only have a hotspot as a viable option. Friggin Satellite internet is too high too.
@leviticus89305 жыл бұрын
@Alex Libman It uses T-mobile towers, no signal for me
@maheshsundaram80123 жыл бұрын
For Bash: set -o vi export VISUAL=vi export EDITOR=vi Then press ESC on the command line to enter a full Vim session
@leonardozerino96285 жыл бұрын
"let me get rid of my config" *CLALCALCLACLALALCLCLUUNKLLCKC*
@DominicGo5 жыл бұрын
MacOS catalina switched over to zsh from a very old version of bash. This video was very useful ☺️
@spaghetio48705 жыл бұрын
happy bday luke smith
@adasfdafsaafqerg87935 жыл бұрын
How did you get transparency and syntax hightlighting to work with Urxt? Whenever I used it I would always get no syntax highlighting, and instead it would read from my .Xresources (I think, not to sure).
@jeffreymerrick42975 жыл бұрын
It's actually not true that pure bash comes pre-configured with more things enabled (color prompt, completion, etc.) than zsh. You can prove that by starting up a bash shell with options to disable running all start up scripts. But since bash is the default shell on most Linux distros, the initialization files /etc/bash.bashrc and /etc/skel/.bashrc (which is copied to your /home//.bashrc by default) are setup up to make bash look all pretty. But the contents of those files can vary across distros or other OSes (Mac, BSD, etc.), and so your out-of-the-gate bash experience can vary. The shell for the Arch installer is zsh -- and it looks really well configured out of the gate -- but that's because the zsh startup files there are using the GRML customization script (see grml.org, or the grml-zsh-config package in Arch). As an aside, the zsh customizations from GRML are rather bloated (handling different OSes, different versions of zsh, different preferences that can be set), but there are some gems in configuring useful zsh options there, so it's worth while to read the GRML code and pull out the useful stuff. Luke, glad you finally made the leap to zsh. No more shell-hopping required. It's the last shell you'll ever need.
@georgesmith30224 жыл бұрын
How do you increase font size in terminal? Which keys do you press?
@bakulg11314 жыл бұрын
Can you share your vimrc too, please?
@robertcrawford40095 жыл бұрын
I'm glad your back making videos.
@prajwaljpj5 жыл бұрын
From one bro to another, I missed you Luke
@maxrepin6491 Жыл бұрын
one of the best vids about zsh tbh
@JR-ix9cu5 жыл бұрын
nice to see you finally on the right side of history
@jaimesotelo42524 жыл бұрын
I'm still not convinced with zsh. Almost everything you say is possible in bash and it even works ootb (Debian Buster): - Command flags completion. Not as fancy as zsh, but works - Edit command in vim. C-x-e does the same - navigate through history. C-r, C-s are usually enough 99% of the times. You can always install fzf, fasd or whatever for even more functionality - etc. All in all I don't see any killer feature, which explains why does even this debate still exists. If zsh/fish were so good no one would use bash anymore. I think there are much more speed gains in learning readline and having some good old aliases for frequent commands than trying to reinvent the wheel. Things like: alias h='history | grep -i ' alias p='ps aux | grep -i ' C-u, sudo, C-y mkdir folder, cd M-. are much more useful and best of all they work in any Linux box.
@coon-si3ce5 жыл бұрын
I installed zsh and then I wanted to run ytdl and it wouldn't run under zsh. For me that is a must and why I still run bash, though, sometimes I runs scripts using dash or rbash.
@zaidgharaybeh84224 жыл бұрын
The part of changing cursor depending on vi mode in zsh broke my vim's cursor, it now looks like it's permanently in Insert mode (just inside vim, not in zsh). Any fix for this?
@aashikyadav44394 жыл бұрын
Did you notice vi mode destroy zsh dupe feature ? I don't know what this is called but let me explain? If you find any previous command you used in your terminal and you know your first two words. Eg. You want to find . "sudo pacman -Rcns somepackage" But you forget remaining command but only know two words. "sudo pacman" then just typing "sudo pacman" and pressing up arrow key get you only command that starts with "sudo pacman".
@nickeldan2 жыл бұрын
+1 for having Bastiat, Folsom, Hayek, and Hazlitt books. -1 for Dawkins and Keynes.
@MrKlaudiosable5 жыл бұрын
Hey bro I'm glad I found your channel. I've been teaching myself Latin and computer science for more than a year now. I also love your polemical memes ; It proves you're knowledgeable.
@franciscobneto4 ай бұрын
i agree with him about fish, but i really like it, unfortunatly fish doesn't have much utility in code teams where everyone is using some REAL shell like sh, bsh or zsh
@lintaozhang80283 жыл бұрын
Really nice video, Thanks!!! Your keyboard flow makes me feel really nice. One thing.... I can't use your ^o function~ I have installed lf.
@chef26545 жыл бұрын
I'd love your thoughts on Morpheus Linux, it's a distro built around the suckless utilities
@alt_warn42115 жыл бұрын
Finally you've ascended the bashlets.
@janfisher83335 жыл бұрын
Luke, you know languages. I need your help as I couldn't find a definite answer to why is a Spanish "good day" greeting in plural. "Buenos días" while one would think it's "Buen día" I've found few most promising theories, one is saying that it's similar to the English "royal we". The other is saying that it's been derived from "Buenas noches nos dé Dios" - "Let God give us good nights" which used to be a saying (now the question is: why is plural being used in this saying!) and the last one is saying that in the past people used to meet each other so seldomly that they just wish good days rather than a good day to cover for the rest of the days they wouldn't see each other. Is it even something I should be thinking about? Some people say "happy days" in the UK and I seemed not to have a problem with that but I just started learning Spanish and for some reason this really bothers me. Oh and I've also been avoiding zsh so far. Btw. How do you feel/deal with writing stuff into web forms, comment sections etc. meaning no vim keybindings. Keep it 💯 G
@marcelocortez33124 жыл бұрын
Do a review about windows cmd
@user-ic7cj8lq9z5 жыл бұрын
For alias expansion you can do something like this: autoload -U compinit compinit # Expand alias on enter expand_alias_enter() { zle _expand_alias zle accept-line } # Expand alias on space expand_alias_space() { zle _expand_alias zle self-insert } # Create widgets zle -N expand_alias_enter zle -N expand_alias_space # Bind keys bindkey '^M' expand_alias_enter bindkey ' ' expand_alias_space
@SwiatLinuksa5 жыл бұрын
Hurra! Terminal Hero has back in glory! Thanks
@patrickm9953 Жыл бұрын
Thanks for creating this.. I'm right behind ya
@Thorhian5 жыл бұрын
Lol, and I remember you saying that you didn't want to use ZSH because because you didn't want it and BASH installed at the same time due to B L O A T.
@LukeSmithxyz5 жыл бұрын
eh just manually delete bash and symlink it to zsh. What's the worst that could happen?
@henrymalinowski51255 жыл бұрын
@@LukeSmithxyz Bash really should stay for scripts that use exclusively bash idioms, and sh would be linked to something pure-POSIX like dash.
@aaronlippincott73855 жыл бұрын
@@henrymalinowski5125 _what's the worst that could happen_
@rockyzhang244 жыл бұрын
Hey Luke, thank you for your video. What file manager are you using now, still lf? I saw in your git repo you updated vifm config file recently. Did you switch to vifm? If so, could you please talk about it a little bit? Thank you!
@brittca2 жыл бұрын
I know this sounds so stupid, but how do I save my Zsh file in Linux? I keep changing my theme and it doesn't save when I close the terminal window. thank you! I want to figure this out before adding any more to the file.
@integralyogin4 жыл бұрын
great video. looks promising. I think you were looking for the word "caret" for the cursor.
@discerningacumen4 жыл бұрын
My system is Catalina macOS. And I’m using iterm2 for the terminal. After having installed oh-my-sh, I can not use vi editing keys on command-line edit mode by hitting escape key. The only solution I found was installing new plugin that enables this. What a bummer! ( I can not live without vim editor all the time, even on the command line. I hate using a editor with graphical interface but those apps developed by Apple.). What is the name of the editor appearing in the video? And I can not find so far text editor on iterm2 which has Swift syntax highlighting. If you know any, please enlighten me. Thanks in advance.
@dr.mikeybee4 жыл бұрын
How many people will mention oh-my-zsh?
@LauraDVega4 жыл бұрын
I also copied and pasted, so using his zshrc profile, what is the alternative for Ctrl-A or Ctrl-E? (Moving to beginning or end of a line in the terminal.)
@georgeunknown28334 жыл бұрын
Zsh is like a SuperBASHman!
@BGSebastianLoewenL5 жыл бұрын
Luke please, update vlarbs: something doesnt allow launch vlarbs after a fresh and correct install of void. There is a flash glitch to vlarbs wallpaper, but then comes back to void tty....Quick installing other DE, runs correctly.... And please, update Larbs, too!!!.... thanks....
@KingZero695 жыл бұрын
glad to see you finally joined the winning team lol... and yeah, fuck fish...
@vlad_k84 жыл бұрын
I suppose you are using zsh with oh my zsh. Oh my zsh has got a huge lists of default plugins and you can use vi-mode plugin from OMZ. It enables a vi prompt with N/I modes. IMO it's better to use antigen with zshrc to manage such things. Besides zprofile there is zshenv things in there too. P.S. vi-model plugin from OMZ provides with all fancy things already so you don't need to create a wheel with all those commands: github.com/ohmyzsh/ohmyzsh/tree/master/plugins/vi-mode See all plugins: github.com/ohmyzsh/ohmyzsh/tree/master/plugins/ P.S. z or pj plugins do good things too.