zsh: Syntax Highlighting, vi-mode, Autocomplete, more

Поделиться
HTML-код
  • Опубликовано: 22 авг 2024
  • My current zshrc: gist.github.co...
    Website: lukesmith.xyz
    Donate: lukesmith.xyz/...

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

  • @LukeSmithxyz
    @LukeSmithxyz  3 года назад +40

    URGENT! Read this:
    lukesmith.xyz/deletion

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

      I know...

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

      RUclips is such a fuckup nowadays.

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

      make a new youtube channel. get help from fellow youtubers. most ppl won't bother about other platforms.

  • @kickbuttowsk2i
    @kickbuttowsk2i 4 года назад +638

    I am a simple man. When I see luke videos, I watch and copy his config.

    • @danilovilasboas
      @danilovilasboas 4 года назад +10

      That's me in a nutshell.

    • @cristubek2416
      @cristubek2416 4 года назад +18

      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?

    • @abcl0653
      @abcl0653 4 года назад

      so where can i copy his config?

    • @danilovilasboas
      @danilovilasboas 4 года назад +2

      @@abcl0653 github.com/LukeSmithxyz/voidrice

    • @francescominnocci
      @francescominnocci 4 года назад +5

      Yo guys how does he zoom in the sheel smoothly? Is it "^+"?

  • @oddbob6230
    @oddbob6230 4 года назад +251

    You know it's a Zoomer shell, as the next macOS update Catalina will replace Bash with Zsh.

    • @ThaEzioAuditore
      @ThaEzioAuditore 4 года назад +14

      Is this for real ? lol

    • @bitnatures
      @bitnatures 4 года назад +16

      @@tarekali7064 I mean good on them for disabling 32-bit. It's been how many years?

    • @bitnatures
      @bitnatures 4 года назад +13

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

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

      @@tarekali7064 unfortunately this means bias fx won't work for me :(, everything else is all g tho

  • @stoicfloor
    @stoicfloor 3 года назад +18

    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!

  • @MrPolluxxxx
    @MrPolluxxxx 4 года назад +84

    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.

  • @edwardgray8782
    @edwardgray8782 4 года назад +38

    I just realized I've been watching you for a year. Glad you're alive again, man.

  • @constantchanger
    @constantchanger 4 года назад +7

    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.

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

      Bash supports this too btw

  • @SriHarshaChilakapati
    @SriHarshaChilakapati 4 года назад +14

    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.

  • @cookiedestroyer402
    @cookiedestroyer402 4 года назад +336

    But Luke since you've been gone we've given up on the vim meme. Now Emacs is by best friend.

    • @douwehuysmans5959
      @douwehuysmans5959 4 года назад +13

      @@guestimator121 Actually WW2 was started by an Australian fellow called Steve

    • @stu3131
      @stu3131 4 года назад +27

      Fuck Steve

    • @tomedwards4297
      @tomedwards4297 4 года назад +22

      Vi-vi-vi is the editor of the beast.

    • @Thorhian
      @Thorhian 4 года назад +2

      Eh, I use both, and I use Doom Emacs (or spacemacs when I have to because reasons) when I use Emacs.

    •  4 года назад +14

      Ed is the standard text editor.

  • @stu3131
    @stu3131 4 года назад +54

    God bless, Luke. Hope you're well. Thanks for the continuous videos, helping me hone my craft.

  • @singha360
    @singha360 4 года назад +50

    I love you Lenin ❤️

  • @ac130kz
    @ac130kz 4 года назад +75

    export BROWSER=brave
    oh, no

    • @EliteTester
      @EliteTester 4 года назад +21

      he fell for it

    • @dhiegov
      @dhiegov 4 года назад

      where did you see it?

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

      What does that mean?

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

      @@_yourNameHere__ Exporting browser history I think..

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

      @@awacs337 just means his default browser is brave

  • @gardenapple
    @gardenapple 4 года назад +81

    Is Luke's anprim internet finally good enough to upload regularly?

  • @strakhov
    @strakhov 2 года назад +7

    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.

  • @Yas-gs8cm
    @Yas-gs8cm 4 года назад +11

    Prophet came to release us from demonic Oh-My-Zsh config!

  • @ZethGamer
    @ZethGamer 4 года назад +5

    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

  • @stellarorbit1341
    @stellarorbit1341 4 года назад +5

    I love watching Luke do things I will never do.

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

    Thank you for your video. I spent hours trying to find a simple answer that every other page over complicated or skipped over.

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

    Thanks Luke! I honestly didn't know how cool zsh was until I saw this

  • @med5032
    @med5032 4 года назад +19

    He looks like Master Roshi from DB.

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

    thanks man for sharing. I love the lf key shortcut integration to navigate to a folder, it went straight into my zsh config, brilliant.

  • @person800
    @person800 4 года назад +7

    "might as well just use python as your shell" - ok, hold my xonsh.

  • @ltxr9973
    @ltxr9973 4 года назад +4

    He has finally embraced the ZSH!

  • @leonardozerino9628
    @leonardozerino9628 4 года назад +8

    "let me get rid of my config" *CLALCALCLACLALALCLCLUUNKLLCKC*

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

    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.

  • @MattyFez
    @MattyFez 4 года назад +42

    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.

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

      @ yes it does lol

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

      @ ahah, thanks for a good laugh

  • @sasakanjuh7660
    @sasakanjuh7660 4 года назад +2

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

  • @user-cf5uf9sw1u
    @user-cf5uf9sw1u 4 года назад +5

    Thought my zsh config was perfect until now. Thanks for the tips

  • @anm4500
    @anm4500 4 года назад +17

    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

    • @Mathisen82
      @Mathisen82 4 года назад +1

      hash -r

    • @anm4500
      @anm4500 4 года назад

      @@Mathisen82 can u explain this plz. i don't have access to my system right now

    • @Mankepanke
      @Mankepanke 4 года назад +4

      Run "rehash", it makes the shell look again in your PATH and update the autocomplete cache.

    • @Mathisen82
      @Mathisen82 4 года назад +1

      @@anm4500 already answerd i see hash -r is same as rehash

    • @Pumpkin-Link
      @Pumpkin-Link 4 года назад +1

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

  • @al-du6lb
    @al-du6lb 3 года назад +1

    been running your config for like a month. Lovin it.

  • @RadionPrime
    @RadionPrime 4 года назад +11

    Sup Luke, are you planning to do new not related podcast?

  • @chris-ew9wl
    @chris-ew9wl 4 года назад +2

    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 `

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

    Thank you for this detailed introduction and tutorial of configuration .

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

    hey luke, you should try 'fasd' truly life changing

  • @yoshi314
    @yoshi314 4 года назад +2

    been using zsh for years, i like it for superior completion features. the rest is a nice bonus.

  • @nilsirl
    @nilsirl 4 года назад +5

    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

    • @iVedett
      @iVedett 4 года назад +1

      Doesnt work for me. it gives an error: bad pattern 1e[6

  • @thytom8534
    @thytom8534 4 года назад +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...

  • @harogaston
    @harogaston 4 года назад +1

    You are missing arguably the best plugin which is zsh-autosuggestions !!

  • @supertech8395
    @supertech8395 4 года назад +4

    Can you explain how did you set up your color scheme? Is it from zsh or just terminal settings?

  • @spaghetio4870
    @spaghetio4870 4 года назад +1

    happy bday luke smith

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

    "Change inside quotes" actually works with zsh-vi-mode plugin

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

    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.

  • @pribeirorib
    @pribeirorib 4 года назад +12

    thank god you're back

  • @tomedwards4297
    @tomedwards4297 4 года назад +4

    Luke, please know that you can actually cd into the previous directory you were in using 'cd -' - no need for the lfcd function!

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

    For Bash:
    set -o vi
    export VISUAL=vi
    export EDITOR=vi
    Then press ESC on the command line to enter a full Vim session

  • @prajwaljpj
    @prajwaljpj 4 года назад +1

    From one bro to another, I missed you Luke

  • @ReneKnuvers74rk
    @ReneKnuvers74rk 4 года назад +5

    Where is fzf in this picture?

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

    one of the best vids about zsh tbh

  • @robertcrawford4009
    @robertcrawford4009 4 года назад +1

    I'm glad your back making videos.

  • @JR-ix9cu
    @JR-ix9cu 4 года назад

    nice to see you finally on the right side of history

  • @marekstepanek3224
    @marekstepanek3224 4 года назад +1

    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!

  • @MrKlaudiosable
    @MrKlaudiosable 4 года назад +1

    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.

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

    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

  • @SwiatLinuksa
    @SwiatLinuksa 4 года назад +1

    Hurra! Terminal Hero has back in glory! Thanks

  • @ych3455
    @ych3455 4 года назад +1

    We really missed your videos good to be back dude

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

    Thanks for creating this.. I'm right behind ya

  • @alt_warn4211
    @alt_warn4211 4 года назад +1

    Finally you've ascended the bashlets.

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

    Yes, finally this is the content I been waiting for. I love zsh/oh-my-zsh and have been using it since 2011 :)

  • @KingZero69
    @KingZero69 4 года назад +2

    glad to see you finally joined the winning team lol... and yeah, fuck fish...

  • @sabio234
    @sabio234 4 года назад +2

    What zsh theme and font are you using ? This looks so good

  • @DominicGo
    @DominicGo 4 года назад

    MacOS catalina switched over to zsh from a very old version of bash. This video was very useful ☺️

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

    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.

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

    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.

  • @arrebator
    @arrebator 4 года назад +1

    Where is the video, Lebowski???

  • @code8860
    @code8860 4 года назад +2

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

  • @user-ic7cj8lq9z
    @user-ic7cj8lq9z 4 года назад +1

    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

  • @jaimesotelo4252
    @jaimesotelo4252 4 года назад +1

    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.

  • @Thorhian
    @Thorhian 4 года назад +7

    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.

    • @LukeSmithxyz
      @LukeSmithxyz  4 года назад +8

      eh just manually delete bash and symlink it to zsh. What's the worst that could happen?

    • @henrymalinowski5125
      @henrymalinowski5125 4 года назад

      @@LukeSmithxyz Bash really should stay for scripts that use exclusively bash idioms, and sh would be linked to something pure-POSIX like dash.

    • @aaronlippincott7385
      @aaronlippincott7385 4 года назад

      @@henrymalinowski5125 _what's the worst that could happen_

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

    >Aenami wallpaper
    too based

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

    +1 for having Bastiat, Folsom, Hayek, and Hazlitt books. -1 for Dawkins and Keynes.

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

    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.

  • @georgeunknown2833
    @georgeunknown2833 4 года назад

    Zsh is like a SuperBASHman!

  • @partypat2151
    @partypat2151 4 года назад +1

    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.

  • @mallock8529
    @mallock8529 4 года назад +2

    The next time Luke leaves he's gonna come back to all his fans using Fish and Emacs on Manjaro

  • @-zero-
    @-zero- 4 года назад +1

    macos now uses zsh by default

  • @franciscobneto
    @franciscobneto 3 месяца назад +1

    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

  • @emersonmx
    @emersonmx 4 года назад

    this trick to change the cursor is cool!

  • @vicyoslinuxofficial2607
    @vicyoslinuxofficial2607 4 года назад

    3:07 That's what I was looking for! Thx! You just helped me to solve my problem. :)

  • @digitsdigitsdigits808
    @digitsdigitsdigits808 4 года назад +4

    >not using rc

  • @mxdavie
    @mxdavie 4 года назад +2

    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=' ☰ '

  • @feschber
    @feschber 4 года назад

    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!

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

    When you said, "you might as well use python as a shell", I went and installed xonsh, a python shell, lol.

  • @Anon-tt9rz
    @Anon-tt9rz 4 года назад +1

    where you been bro, gald you're back with more nix stuff, keep it up!

  • @leviticus8930
    @leviticus8930 4 года назад +2

    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.

    • @leviticus8930
      @leviticus8930 4 года назад

      @Alex Libman It uses T-mobile towers, no signal for me

  • @theguywhoiscoding9912
    @theguywhoiscoding9912 4 года назад

    just oh-my-zsh and powerlevel10k gg

  • @jeffreymerrick4297
    @jeffreymerrick4297 4 года назад

    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.

  • @jonnykopp
    @jonnykopp 4 года назад

    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?

  • @bakulg1131
    @bakulg1131 4 года назад +2

    Can you share your vimrc too, please?

  • @The1wsx10
    @The1wsx10 4 года назад

    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)

  • @Luxcium
    @Luxcium 4 года назад +1

    What’s the lf command ? I don’t know if it’s explained in an other video because I am new here 😄

  • @ybhall
    @ybhall 4 года назад +1

    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.

  • @hacerdemirel9833
    @hacerdemirel9833 4 года назад +1

    Thank you for this great video!

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

    did you make a video about the powerline that you are using?

  • @vlad_k8
    @vlad_k8 4 года назад

    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.

  • @integralyogin
    @integralyogin 4 года назад

    great video. looks promising.
    I think you were looking for the word "caret" for the cursor.

  • @EnderCrypt
    @EnderCrypt 4 года назад

    also worth noting of oh-my-zsh

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

    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

  • @norcal6181
    @norcal6181 4 года назад

    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

  • @mitube4u
    @mitube4u 4 года назад

    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.

    • @mitube4u
      @mitube4u 4 года назад

      Actually never-mind that above question. I was able to figure it out and install it. Arline for VIM.

  • @flamendless
    @flamendless 4 года назад

    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?