Top 10 Oh My Zsh Plugins For Productive Developers

Поделиться
HTML-код
  • Опубликовано: 30 сен 2024

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

  • @tf5658
    @tf5658 3 года назад +26

    the second plugin can be skipped by typing "sudo !!". great video anyways! i installed a couple of them :)

  • @Maxlyaptsev
    @Maxlyaptsev 3 года назад +17

    About sudo - just use !! - this is your last command. So, your actions:
    1: reboot
    2: sudo !!
    you don't need additional plugins for that

    • @djchrisi
      @djchrisi 2 года назад +2

      you can alias this as well:
      alias please='sudo $(fc -ln -1)'

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

      That was my first thought, but then I realized that sudo plugin allows me to edit the command, so it can be more useful sometimes. And it's quicker: 3 vs 8 keys.

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

    If you know a little more about zsh and command line in general, most of these plugins are redundant

  • @Comrade_Tux
    @Comrade_Tux 2 года назад +5

    If you forget sudo on a long command just use `sudo !!`. It will run the last command as sudo. Plugin would be little faster I guess.

  • @TravisMedia
    @TravisMedia  3 года назад +5

    A lot of people have mentioned that you can do "sudo !!" for #2. That's correct and I actually didn't know that (thank you!). However, it's still 7 keys to type vs only 2 (esc esc) 😉😎

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

    Thanks for making this video, it is very helpful. Please update video for the following plugin names macOS instead of osx, copypath intead of copydir, zsh_reload no longer supported..

  • @jayg125
    @jayg125 2 года назад +11

    Try using the bang commands in the shell... Eliminates the need of the sudo plugin and gives a lot more control.... Awesome video btw

  • @user779hjg45
    @user779hjg45 2 года назад +2

    zsh_reload plugin is also deprecated. I use alias src='omz reload' instead

  • @MorphTW
    @MorphTW Год назад +1

    With ctrl+a and ctrl+e you can jump to beginning or end of the line. Ctrl+w jumps through the words

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

    Thanks for the video, added a few plugins I haven't used before!
    Also: instead of typing 'clear' you could've Ctrl+L :)

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

    "open ." already works the same as ofd in the osx plugin, FYI.

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

    You can do all of this stuff with a simple one line alias or a function, you dont need a bloated plugin manager

  • @charlyyshell
    @charlyyshell Год назад +1

    Update about copydir, now is "copypath"

  • @dogaarmangil
    @dogaarmangil 2 года назад +2

    Great tips! 7:47 it's copypath not copydir. 14:09 it's macos not osx.

    • @DUANEYAISER
      @DUANEYAISER Год назад +1

      I think it used to be ox though, my ox didn't load, I just got rid of it without looking for the replacement . . . I just added "macos" because of your comment and I'm back in business! Thanks!!

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

    For reloading zsh to include changes in bashrc, zshrc, etc. you can simply type 'zsh', that will reload the shell :P same amount of key presses as 'src' and without pluggins xD

    • @SantiagoArizti
      @SantiagoArizti 2 года назад +6

      if you type "zsh" you will open a process-within-a-process. don't believe me? type "exit" or "ctrl+d" and you will be back to where you where when you typed "zsh"
      perhaps more appropriate would be "exec zsh" which replaces your current shell with a new shell

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

      @@SantiagoArizti That makes a lot of sense! :P

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

    Hey I just find out zsh_reload is deprecated. Is there any replacement for this plugin?

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

      Command 'omz reload' is there for help. If you want, you can create its alias too.

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

    The only plugin you need to move around in directories is z, it's amazing. Combined with the shell built-ins pushd and popd you have everything you need.

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

      What do you mean (I have the tiniest amount of experience in zsh)?

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

      @@washedtoohot plugin called "Z" .... checkout this plugin in github.

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

      "z" has become my favorite go to tool for remembering directories. Is it a plugin though?

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

      It’s available as a single file script u can download. Its called “z - jump around”

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

    i usually pronounce zsh as zsh. What about you? do you pronounce it as zsh or zsh?

  • @422raziel
    @422raziel 2 года назад +3

    Another way to do copy the current directory path, would be to have an alias like this: *alias pwdc='pwd | pbcopy && echo "Pwd copied to clipboard!"'*
    I named it *pwdc* because the *pwd* gives you the path and appended 'c' for copy
    For history grep you can also make an alias: *alias {hg,hs,hgrep}="history -i | grep "*
    ofd from osx plugin can be done with *finder .* or *finder what/ever/path* --nice plugin though

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

    Keep adding plugins to the list might slow the startup of your zshell, some of them can be achieved by builtin functions like sudo !! or CTRL+A to fast jump to beginning of command to prepend sudo

  • @TheComputerCowboy
    @TheComputerCowboy 3 месяца назад

    I pronounce zsh as "zesh."
    spelling it out is silly.
    If people can say gif instead of gif,
    and data instead of data,
    then I can say zsh instead of zsh.

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

    The second one (Sudo) is unecessery. If you hit bang-bang (!!) your terminal will copy your last command. So you would only need to type (sudo !!).

  • @shashankkr1008
    @shashankkr1008 10 месяцев назад

    Instead of 7th plugin, we can just add this line to zshrc "alias refresh="exec zsh"" or "alias refresh="source zsh"

  • @badbod
    @badbod Месяц назад

    zed shell. zed, as in ex why zed , I guess zee is some foreign pronunciation of zed?

  • @redthrawn
    @redthrawn 5 месяцев назад

    for anyone seeing this now: 'copydir' is now 'copypath', and 'osx' is now 'macos' ;)

  • @Davoda2
    @Davoda2 7 месяцев назад

    Useful things; but why would you use a plugin for 2-3 lines of code? zsh_reload, history etc

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

    sudo !! - repeat previous command with sudo. "!!" in general contains previous command

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

    Update 2022 - The `copydir` plugin is deprecated. Use the `copypath` plugin instead.

  • @kim-hendrikmerk4163
    @kim-hendrikmerk4163 Год назад

    But why use the plugin manager if you can just source the file you downloaded in the .zshrc file

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

    You can literally do all of this without even using a plugin manager
    they are unnecessary bloat.

  • @kim-hendrikmerk4163
    @kim-hendrikmerk4163 Год назад

    Note that if you aent to sudo the previous command you can use the same syntax as bash meaning: sudo !!

  • @haru02w89
    @haru02w89 9 месяцев назад

    I don't think sudo is actually useful. You could just run "sudo !!" and done

  • @BenEdison-u1j
    @BenEdison-u1j 27 дней назад

    Davis Dorothy Garcia Mark Young Eric

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

    I think jq would be a better more ubiquitous tool than pp_json

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

    hstr is a much better alternative to the history command, I can't live without it.

  • @Tom-hq7sp
    @Tom-hq7sp 2 года назад

    src plugin is unnecessary. type zsh and exactly the same will happen.

  • @This_Month_In_History
    @This_Month_In_History 6 месяцев назад

    auto-notify not popping up on my kubuntu, any suggestions?

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

    You don’t need a plug-in for sudo, just type !! In terminal

  • @L1ckdiznuts
    @L1ckdiznuts 4 месяца назад

    honestly this is second to OMZ in terms of bloat

  • @omundopelaia
    @omundopelaia 7 месяцев назад

    what terminal is it? The window looks different

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

    everyone says "makedir". Right ? Right ???

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

    "ofd" command is already there with "open ."

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

    why not make the sections a bit more descriptive instead of calling them plugin #n ? that would make it easier to navigate through your video

    • @TravisMedia
      @TravisMedia  Год назад +1

      Done! Thanks for the suggestion

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

    Anyone watching this now: OSX is now macos

  • @nilz__
    @nilz__ Год назад +1

    Just a little tip for those who may not know: In the video there was an example of going up directories by typing "cd .. cd .. cd ..", but you can actually do that in one go: "cd ../../.."

    • @iGong
      @iGong Год назад +1

      in omz you just do .... ;-)

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

    You have to interpolate "$(pfd)"

  • @BrianBrown-o1s
    @BrianBrown-o1s 7 дней назад

    Maxie Courts

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

    osx plugin has been renamed as macos.

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

    what was the point of copydir again?

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

    Did you know `sudo !!` ? `!!` is an alias for you last command. So this might still be a little more "cumbersome" than ESC ESC, but I think it's not worth having a plugin for that :D Also: `cd ..` `cd ..` is a lot less efficient than `cd ../..`. But even more importantly: jsut typing `cd` always takes you to your home directory.

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

    I will be using zsh more efficiently from now on. Thank you!

  • @idouxda
    @idouxda 6 месяцев назад

    copydir is no more. 404 error.

  • @TiberiusGracchi
    @TiberiusGracchi 10 месяцев назад

    pwd | pbcopy to copy current dir

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

    Am I the only one who thinks this trend of saying "Jay - San" is odd? Wasn't the acronym intended to mimic the name "Jason"? I fully admit I could be wrong, but "Jay san" sounds odd to my ears.

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

    you don´t really need a "plugin" (...well all of them are basically just shellscripts as well) to source the .zshrc again - This one is basically a one-liner
    just put the alias itself into the .zshrc:
    - I have one to configure the .zshrc and one to source it again
    alias czsh="sudo nvim ${ZDOTDIR}/.zshrc"
    alias szsh="source ${ZDOTDIR}/.zshrc"

  • @TheRafark
    @TheRafark 5 месяцев назад

    I call it “make dir” too

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

    use macos instead of osx now

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

    Copydir moved to copypath

  • @EmminiX
    @EmminiX Месяц назад

    Thank you!

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

    sudoy and copydir are maybe not that usefull -> use sudo !! and cd -
    otherwise, thanks for tips ! :)

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

    copydir is now copypath

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

    osx plugin is now macos

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

    I think best practice would be to name chapters real name of the plugin instead plugin 1, 2, n..

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

    plugin
    #1 - is usefull
    #2 alternative - "sudo !!" - this will run you previous command with sudo.
    Others - can live without them

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

    Instead of using a plugin like sudo, and alternative is writing `sudo !!` which executes your last command by prepending sudo to it.

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

    Everything listed in the video already exists on mac or can be easily aliased... Like for the presentation though

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

    This was eye opening, the osx plugin alone is going to save me tons of time. Thank you for the great video!

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

    Doovde player

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

    sudo !!

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

    May I suggest at 15:40 for the OSX plugin, you probably don't have to do
    $cdf
    You probably need to evaluate pfd, eg trying one of these might work
    $cd $pfd
    $cd $(pfd)
    Not that this is anymore convenient. But it's not really something missing in ohmyzsh. Not that I can confirm. I'm on bash, I looked at the video to potentially get into zsh.
    Thanks for the vid!

  • @АндрейГалушко-е9о
    @АндрейГалушко-е9о 2 года назад

    OMG!! Thank you man!! Nice day from russia 🇷🇺

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

    popd also works well for going back and forth between folders.

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

    Weirdly I do actually call it makedir sometimes rather then mkdir. Depends how not in the mood I am to say shorthands

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

    or sudo !! ?

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

    For anyone wondering where the 'osx' plugin is, it was renamed to 'macos'

  • @shivakumar-mu2vn
    @shivakumar-mu2vn 2 года назад

    I find alias command more useful to an extent... For some basic customisation.

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

    Start 1:42

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

    thanks!

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

    I think thefuck Is better than sudo. It will do the retry with sudo when double pressing ESC. And it will also try some other fixes on your mistyped commands

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

    Hey , I don't find osx anymore in plugins !!
    Is it replaced with some other plugin please let me know
    Thanks in advance

    • @monolith4567
      @monolith4567 7 месяцев назад

      Don't know if you still need this but its called macos plugin now

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

    Thanks for the suggestions.
    I started using some of them :)

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

    thank you very much, very useful, my mac is alive))

  • @90DaysOfDevOps
    @90DaysOfDevOps 3 года назад

    I am just rebuilding my laptop and stumbled across your blog and video, super useful plugins, I know there are so many to choose from, this is a great starter for anyone that is going to be using zsh

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

    Instead of quitting and reopening the terminal, I use the command: /bin/zsh. Any changes are immediately applied. Am I missing a problem using that?

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

      Nope thanks for sharing it!

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

      Yes. You'll see the changes applied. However, what you've done is the same as opening a new terminal, but by creating it as a sub process. The main zsh process underneath is still not updated yet.
      If you've installed omz, it's recommended to use 'omz reload' or just create its alias. That will do the job.

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

    Thanks for the video. Very helpful. 👍

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

    that bonus was really a great bonus. Thanks for showing

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

    I, too, call it "make dir"!!!!

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

    Thank you very much.

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

    I'm guessing others mentioned this but you can just rerun the last command with sudo pretty easily already; i.e: sudo !!

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

      [scrolls down, sees others mention same]
      You can never have too much of a good thing, right?

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

      @@envueltoenplastico Nope. All knowledge is appreciated here!

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

      Great presentation by the way, might be finally convinced to move over to zsh (pronouncing it zish naturally 😉)

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

    wonderful!! cheers!

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

    thank you so much!

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

    Awesome, thank you very much. Oh my zsh is excellent.

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

    These are so useful!

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

    just use regular bash, it's everywhere

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

      Some people like customizing there setups bash and zsh are both extremely similar and most scripts work on both and zsh has extra features like massively better autocompletion

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

    sudo !! runs the last command via sudo. (SueDoo)

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

      That’s 5 extra key presses 😃

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

      @@TravisMedia 6

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

      Or, is that 7?

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

      @@RayParker
      Esc Esc = 2
      Sudo !! = 7
      7 - 2 = 5
      That’s the way I saw it 🤷‍♂️

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

      @@RayParker But the petty math aside I did not know about sudo !! and really glad you mentioned it.

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

    Some of the plugins are fairly easy to write yourself, for example:
    For copying to clipboard I just do `ccpy something`. e.g. `ccpy pwd`.
    It's just a function in the config file that does this: `$1 | xclip -sel clip`

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

      Absolutely! Put having all of them wrapped in plugins is convenient, like getting a brownie or cake mix from Duncan Hines. :-)

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

      @@DUANEYAISER Good point, however in my case, the prompt was taking forever to load because of that "mess". Maybe a better hardware would've solved the problem; idk.

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

    The web search plugin seems to quite off, it is only picking up the first word that I type out in the command.
    if I say: google oh my zsh
    It copies only 'oh' to the browser. Anything I might be doing wrong?

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

    how do i add folder icons so when i type ls the list of folders have icons next to them

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

      folders aleady have special display features.
      in normal `ls` the folders are colored differently than normal files
      and in `ls -l` folders have a `d` letter indicating they are folders