@@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.
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!
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.
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.
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.
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.
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.
My my, how the times have changed. Also, will you do an ed tutorial? It's the standard editor you know
4 года назад+40
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.
@@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."
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 `
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
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!
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.
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.
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.
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...
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
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.
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.
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.
I use zsh because it has the best plugin ecosystem as an interactive shell. You can get all kinds of plugins from the awesome-zsh-plugins repo, github.com/unixorn/awesome-zsh-plugins To speed up zsh startup, check the plugin manager comparison gist. gist.github.com/4a4c4986ccdcaf47b91e8227f9868ded Startups in 110ms with 35 plugins installed, including rbenv, pyenv.
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
I use vi mode in zsh with powerlevel10k and love it! Here is a screenshot of what I've put together: imgur.com/zpOfbue And here is the relevant configuration behind it (note that the icons came from nerdfonts): typeset -ga POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=( vi_mode dir vcs newline prompt_char ) typeset -g POWERLEVEL9K_MODE=nerdfont-complete typeset -g POWERLEVEL9K_PROMPT_ADD_NEWLINE=true typeset -g POWERLEVEL9K_VI_INSERT_MODE_STRING=' INSERT' typeset -g POWERLEVEL9K_VI_MODE_INSERT_FOREGROUND=11 typeset -g POWERLEVEL9K_VI_COMMAND_MODE_STRING=' NORMAL' typeset -g POWERLEVEL9K_VI_MODE_NORMAL_FOREGROUND=10 typeset -g POWERLEVEL9K_VI_VISUAL_MODE_STRING=' VISUAL' typeset -g POWERLEVEL9K_VI_MODE_VISUAL_FOREGROUND=12 typeset -g POWERLEVEL9K_VI_OVERWRITE_MODE_STRING=' REPLACE' typeset -g POWERLEVEL9K_VI_MODE_OVERWRITE_FOREGROUND=9 typeset -g POWERLEVEL9K_PROMPT_CHAR_OVERWRITE_STATE=true typeset -g POWERLEVEL9K_PROMPT_CHAR_BACKGROUND= typeset -g POWERLEVEL9K_PROMPT_CHAR_{OK,ERROR}_VIINS_FOREGROUND=11 typeset -g POWERLEVEL9K_PROMPT_CHAR_{OK,ERROR}_VICMD_FOREGROUND=10 typeset -g POWERLEVEL9K_PROMPT_CHAR_{OK,ERROR}_VIVIS_FOREGROUND=12 typeset -g POWERLEVEL9K_PROMPT_CHAR_{OK,ERROR}_VIOWR_FOREGROUND=9 typeset -g POWERLEVEL9K_PROMPT_CHAR_{OK,ERROR}_{VIINS,VICMD,VIVIS,VIOWR}_CONTENT_EXPANSION=' ☰ '
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!
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.
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?
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)
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.
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.
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
I would like to add for all the lazy people out there, there is a project called oh-my-zsh which is like a turn key config for zsh. Set it and forget it baby. It also allows tweaking if one desires of course, and it provides a clean simple interface for said tweaking
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.
URGENT! Read this:
lukesmith.xyz/deletion
I know...
RUclips is such a fuckup nowadays.
make a new youtube channel. get help from fellow youtubers. most ppl won't bother about other platforms.
I am a simple man. When I see luke videos, I watch and copy his config.
That's me in a nutshell.
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?
so where can i copy his config?
@@abcl0653 github.com/LukeSmithxyz/voidrice
Yo guys how does he zoom in the sheel smoothly? Is it "^+"?
You know it's a Zoomer shell, as the next macOS update Catalina will replace Bash with Zsh.
Is this for real ? lol
@@tarekali7064 I mean good on them for disabling 32-bit. It's been how many years?
@@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.
@@tarekali7064 unfortunately this means bias fx won't work for me :(, everything else is all g tho
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!
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.
🚘
I just realized I've been watching you for a year. Glad you're alive again, man.
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.
Bash supports this too btw
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.
But Luke since you've been gone we've given up on the vim meme. Now Emacs is by best friend.
@@guestimator121 Actually WW2 was started by an Australian fellow called Steve
Fuck Steve
Vi-vi-vi is the editor of the beast.
Eh, I use both, and I use Doom Emacs (or spacemacs when I have to because reasons) when I use Emacs.
Ed is the standard text editor.
God bless, Luke. Hope you're well. Thanks for the continuous videos, helping me hone my craft.
I love you Lenin ❤️
export BROWSER=brave
oh, no
he fell for it
where did you see it?
What does that mean?
@@_yourNameHere__ Exporting browser history I think..
@@awacs337 just means his default browser is brave
Is Luke's anprim internet finally good enough to upload regularly?
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.
Prophet came to release us from demonic Oh-My-Zsh config!
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
I love watching Luke do things I will never do.
Thank you for your video. I spent hours trying to find a simple answer that every other page over complicated or skipped over.
Thanks Luke! I honestly didn't know how cool zsh was until I saw this
He looks like Master Roshi from DB.
thanks man for sharing. I love the lf key shortcut integration to navigate to a folder, it went straight into my zsh config, brilliant.
"might as well just use python as your shell" - ok, hold my xonsh.
He has finally embraced the ZSH!
"let me get rid of my config" *CLALCALCLACLALALCLCLUUNKLLCKC*
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.
My my, how the times have changed. Also, will you do an ed tutorial? It's the standard editor you know
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.
@ yes it does lol
@ ahah, thanks for a good laugh
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 :)
Thought my zsh config was perfect until now. Thanks for the tips
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
hash -r
@@Mathisen82 can u explain this plz. i don't have access to my system right now
Run "rehash", it makes the shell look again in your PATH and update the autocomplete cache.
@@anm4500 already answerd i see hash -r is same as rehash
@@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."
been running your config for like a month. Lovin it.
Sup Luke, are you planning to do new not related podcast?
Yes, do one on roads
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 `
Thank you for this detailed introduction and tutorial of configuration .
hey luke, you should try 'fasd' truly life changing
been using zsh for years, i like it for superior completion features. the rest is a nice bonus.
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
Doesnt work for me. it gives an error: bad pattern 1e[6
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...
You are missing arguably the best plugin which is zsh-autosuggestions !!
Can you explain how did you set up your color scheme? Is it from zsh or just terminal settings?
happy bday luke smith
"Change inside quotes" actually works with zsh-vi-mode plugin
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.
thank god you're back
Luke, please know that you can actually cd into the previous directory you were in using 'cd -' - no need for the lfcd function!
For Bash:
set -o vi
export VISUAL=vi
export EDITOR=vi
Then press ESC on the command line to enter a full Vim session
From one bro to another, I missed you Luke
Where is fzf in this picture?
one of the best vids about zsh tbh
I'm glad your back making videos.
nice to see you finally on the right side of history
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!
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.
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
Hurra! Terminal Hero has back in glory! Thanks
We really missed your videos good to be back dude
Thanks for creating this.. I'm right behind ya
Finally you've ascended the bashlets.
Yes, finally this is the content I been waiting for. I love zsh/oh-my-zsh and have been using it since 2011 :)
glad to see you finally joined the winning team lol... and yeah, fuck fish...
What zsh theme and font are you using ? This looks so good
MacOS catalina switched over to zsh from a very old version of bash. This video was very useful ☺️
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.
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.
Where is the video, Lebowski???
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...
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
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.
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.
eh just manually delete bash and symlink it to zsh. What's the worst that could happen?
@@LukeSmithxyz Bash really should stay for scripts that use exclusively bash idioms, and sh would be linked to something pure-POSIX like dash.
@@henrymalinowski5125 _what's the worst that could happen_
>Aenami wallpaper
too based
+1 for having Bastiat, Folsom, Hayek, and Hazlitt books. -1 for Dawkins and Keynes.
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.
Zsh is like a SuperBASHman!
I use zsh because it has the best plugin ecosystem as an interactive shell.
You can get all kinds of plugins from the awesome-zsh-plugins repo, github.com/unixorn/awesome-zsh-plugins
To speed up zsh startup, check the plugin manager comparison gist. gist.github.com/4a4c4986ccdcaf47b91e8227f9868ded
Startups in 110ms with 35 plugins installed, including rbenv, pyenv.
The next time Luke leaves he's gonna come back to all his fans using Fish and Emacs on Manjaro
macos now uses zsh by default
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
this trick to change the cursor is cool!
3:07 That's what I was looking for! Thx! You just helped me to solve my problem. :)
>not using rc
I use vi mode in zsh with powerlevel10k and love it!
Here is a screenshot of what I've put together:
imgur.com/zpOfbue
And here is the relevant configuration behind it (note that the icons came from nerdfonts):
typeset -ga POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(
vi_mode
dir
vcs
newline
prompt_char
)
typeset -g POWERLEVEL9K_MODE=nerdfont-complete
typeset -g POWERLEVEL9K_PROMPT_ADD_NEWLINE=true
typeset -g POWERLEVEL9K_VI_INSERT_MODE_STRING=' INSERT'
typeset -g POWERLEVEL9K_VI_MODE_INSERT_FOREGROUND=11
typeset -g POWERLEVEL9K_VI_COMMAND_MODE_STRING=' NORMAL'
typeset -g POWERLEVEL9K_VI_MODE_NORMAL_FOREGROUND=10
typeset -g POWERLEVEL9K_VI_VISUAL_MODE_STRING=' VISUAL'
typeset -g POWERLEVEL9K_VI_MODE_VISUAL_FOREGROUND=12
typeset -g POWERLEVEL9K_VI_OVERWRITE_MODE_STRING=' REPLACE'
typeset -g POWERLEVEL9K_VI_MODE_OVERWRITE_FOREGROUND=9
typeset -g POWERLEVEL9K_PROMPT_CHAR_OVERWRITE_STATE=true
typeset -g POWERLEVEL9K_PROMPT_CHAR_BACKGROUND=
typeset -g POWERLEVEL9K_PROMPT_CHAR_{OK,ERROR}_VIINS_FOREGROUND=11
typeset -g POWERLEVEL9K_PROMPT_CHAR_{OK,ERROR}_VICMD_FOREGROUND=10
typeset -g POWERLEVEL9K_PROMPT_CHAR_{OK,ERROR}_VIVIS_FOREGROUND=12
typeset -g POWERLEVEL9K_PROMPT_CHAR_{OK,ERROR}_VIOWR_FOREGROUND=9
typeset -g POWERLEVEL9K_PROMPT_CHAR_{OK,ERROR}_{VIINS,VICMD,VIVIS,VIOWR}_CONTENT_EXPANSION=' ☰ '
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!
When you said, "you might as well use python as a shell", I went and installed xonsh, a python shell, lol.
where you been bro, gald you're back with more nix stuff, keep it up!
so gald
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.
@Alex Libman It uses T-mobile towers, no signal for me
just oh-my-zsh and powerlevel10k gg
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.
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?
Can you share your vimrc too, please?
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)
What’s the lf command ? I don’t know if it’s explained in an other video because I am new here 😄
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.
Thank you for this great video!
Hacer Demirel Burada bir Türk göreceğim aklımın ucundan bile geçmezdi, ulaş bana...
did you make a video about the powerline that you are using?
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.
great video. looks promising.
I think you were looking for the word "caret" for the cursor.
also worth noting of oh-my-zsh
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
I would like to add for all the lazy people out there, there is a project called oh-my-zsh which is like a turn key config for zsh. Set it and forget it baby. It also allows tweaking if one desires of course, and it provides a clean simple interface for said tweaking
That's pure soy
@@bradleycooper5436 Yes, man tits and all
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.
Actually never-mind that above question. I was able to figure it out and install it. Arline for VIM.
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?