the second plugin can be skipped by typing "sudo !!". great video anyways! i installed a couple of them :)
@Justicewarrior7952 жыл бұрын
exactly!
@Maxlyaptsev3 жыл бұрын
About sudo - just use !! - this is your last command. So, your actions: 1: reboot 2: sudo !! you don't need additional plugins for that
@djchrisi2 жыл бұрын
you can alias this as well: alias please='sudo $(fc -ln -1)'
@onzamono2 жыл бұрын
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.
@TravisMedia3 жыл бұрын
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) 😉😎
@jayg1253 жыл бұрын
Try using the bang commands in the shell... Eliminates the need of the sudo plugin and gives a lot more control.... Awesome video btw
@Comrade_Tux2 жыл бұрын
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.
@acidminded2 жыл бұрын
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
@SantiagoArizti2 жыл бұрын
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
@acidminded2 жыл бұрын
@@SantiagoArizti That makes a lot of sense! :P
@kjeldgaard03 жыл бұрын
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.
@washedtoohot2 жыл бұрын
What do you mean (I have the tiniest amount of experience in zsh)?
@techworld30432 жыл бұрын
@@washedtoohot plugin called "Z" .... checkout this plugin in github.
@akkineni19472 жыл бұрын
"z" has become my favorite go to tool for remembering directories. Is it a plugin though?
@vikingthedude Жыл бұрын
It’s available as a single file script u can download. Its called “z - jump around”
@rinkudaxini2 жыл бұрын
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..
@DefaultUser33012 жыл бұрын
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
@fadecomic3 жыл бұрын
"open ." already works the same as ofd in the osx plugin, FYI.
@90DaysOfDevOps3 жыл бұрын
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
@nilz__ Жыл бұрын
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 Жыл бұрын
in omz you just do .... ;-)
@KeiS1411 күн бұрын
alias ….=“cd ../../..”
@MorphTW Жыл бұрын
With ctrl+a and ctrl+e you can jump to beginning or end of the line. Ctrl+w jumps through the words
@422raziel3 жыл бұрын
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
@TravisMedia3 жыл бұрын
Thanks for the insight!
@strakhov2 жыл бұрын
Thanks for the video, added a few plugins I haven't used before! Also: instead of typing 'clear' you could've Ctrl+L :)
@user779hjg452 жыл бұрын
zsh_reload plugin is also deprecated. I use alias src='omz reload' instead
@sheri92453 жыл бұрын
I will be using zsh more efficiently from now on. Thank you!
@charlyyshell Жыл бұрын
Update about copydir, now is "copypath"
@codetothemoon Жыл бұрын
This was eye opening, the osx plugin alone is going to save me tons of time. Thank you for the great video!
@shubhampawar79212 жыл бұрын
If you know a little more about zsh and command line in general, most of these plugins are redundant
@JacquesvanWyk3 жыл бұрын
that bonus was really a great bonus. Thanks for showing
@halamadrid52382 жыл бұрын
You can do all of this stuff with a simple one line alias or a function, you dont need a bloated plugin manager
@rashadmoves3 жыл бұрын
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!
@arthurspa2 жыл бұрын
Thanks for the suggestions. I started using some of them :)
@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.
@dogaarmangil2 жыл бұрын
Great tips! 7:47 it's copypath not copydir. 14:09 it's macos not osx.
@DUANEYAISER Жыл бұрын
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!!
@NikolayMishin3 жыл бұрын
thank you very much, very useful, my mac is alive))
@QueeeeenZ2 жыл бұрын
hstr is a much better alternative to the history command, I can't live without it.
@jeffborges1013 жыл бұрын
Thanks for the video. Very helpful. 👍
@snowmansshorts Жыл бұрын
For anyone wondering where the 'osx' plugin is, it was renamed to 'macos'
@АндрейГалушко-е9о2 жыл бұрын
OMG!! Thank you man!! Nice day from russia 🇷🇺
@sergeygr3 жыл бұрын
plugin #1 - is usefull #2 alternative - "sudo !!" - this will run you previous command with sudo. Others - can live without them
@Rawbful Жыл бұрын
popd also works well for going back and forth between folders.
@sidharthjawale5215 Жыл бұрын
Thank you very much.
@arpanghoshal25792 жыл бұрын
Instead of using a plugin like sudo, and alternative is writing `sudo !!` which executes your last command by prepending sudo to it.
@fc9782 жыл бұрын
"ofd" command is already there with "open ."
@ignacioalcauza2 жыл бұрын
wonderful!! cheers!
@shanujha72453 жыл бұрын
i usually pronounce zsh as zsh. What about you? do you pronounce it as zsh or zsh?
@shashankkr100811 ай бұрын
Instead of 7th plugin, we can just add this line to zshrc "alias refresh="exec zsh"" or "alias refresh="source zsh"
@kim-hendrikmerk4163 Жыл бұрын
Note that if you aent to sudo the previous command you can use the same syntax as bash meaning: sudo !!
@xuwang92052 жыл бұрын
Hey I just find out zsh_reload is deprecated. Is there any replacement for this plugin?
@sidharthjawale5215 Жыл бұрын
Command 'omz reload' is there for help. If you want, you can create its alias too.
@redthrawn7 ай бұрын
for anyone seeing this now: 'copydir' is now 'copypath', and 'osx' is now 'macos' ;)
@andreasweinberger24183 жыл бұрын
Everything listed in the video already exists on mac or can be easily aliased... Like for the presentation though
@shivakumar-mu2vn2 жыл бұрын
I find alias command more useful to an extent... For some basic customisation.
@Davoda28 ай бұрын
Useful things; but why would you use a plugin for 2-3 lines of code? zsh_reload, history etc
@kim-hendrikmerk4163 Жыл бұрын
But why use the plugin manager if you can just source the file you downloaded in the .zshrc file
@envueltoenplastico2 жыл бұрын
I'm guessing others mentioned this but you can just rerun the last command with sudo pretty easily already; i.e: sudo !!
@envueltoenplastico2 жыл бұрын
[scrolls down, sees others mention same] You can never have too much of a good thing, right?
@TravisMedia2 жыл бұрын
@@envueltoenplastico Nope. All knowledge is appreciated here!
@envueltoenplastico2 жыл бұрын
Great presentation by the way, might be finally convinced to move over to zsh (pronouncing it zish naturally 😉)
@dimasmfth3 жыл бұрын
thank you so much!
@badproger55012 жыл бұрын
I think best practice would be to name chapters real name of the plugin instead plugin 1, 2, n..
@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"
@omundopelaia8 ай бұрын
what terminal is it? The window looks different
@locoxella3 жыл бұрын
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
@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 !!).
@This_Month_In_History7 ай бұрын
auto-notify not popping up on my kubuntu, any suggestions?
@shadowking60083 жыл бұрын
Weirdly I do actually call it makedir sometimes rather then mkdir. Depends how not in the mood I am to say shorthands
@user779hjg452 жыл бұрын
Update 2022 - The `copydir` plugin is deprecated. Use the `copypath` plugin instead.
@n3r0z3r02 жыл бұрын
sudo !! - repeat previous command with sudo. "!!" in general contains previous command
@Justicewarrior7952 жыл бұрын
what was the point of copydir again?
@akshaynanavare26062 жыл бұрын
Hey , I don't find osx anymore in plugins !! Is it replaced with some other plugin please let me know Thanks in advance
@monolith45678 ай бұрын
Don't know if you still need this but its called macos plugin now
@glennmiller3942 жыл бұрын
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?
@TravisMedia2 жыл бұрын
Nope thanks for sharing it!
@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.
@vikingthedude Жыл бұрын
I think jq would be a better more ubiquitous tool than pp_json
@dennisgonzales95212 жыл бұрын
thanks!
@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 Жыл бұрын
Absolutely! Put having all of them wrapped in plugins is convenient, like getting a brownie or cake mix from Duncan Hines. :-)
@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.
@titoli12 жыл бұрын
You don’t need a plug-in for sudo, just type !! In terminal
@dyay1083 жыл бұрын
These are so useful!
@MrAmad3us2 жыл бұрын
everyone says "makedir". Right ? Right ???
@macronchampion2 жыл бұрын
Start 1:42
@MrAmad3us2 жыл бұрын
or sudo !! ?
@benjaminmoseslieb9856 Жыл бұрын
You have to interpolate "$(pfd)"
@TheComputerCowboy5 ай бұрын
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.
@trailblazer_nomad3 жыл бұрын
Awesome, thank you very much. Oh my zsh is excellent.
@Berkto002 жыл бұрын
sudoy and copydir are maybe not that usefull -> use sudo !! and cd - otherwise, thanks for tips ! :)
@TheAbhishekmandal3 жыл бұрын
sudo !!
@L1ckdiznuts5 ай бұрын
honestly this is second to OMZ in terms of bloat
@vivekvitthaljadhav2 жыл бұрын
osx plugin is now macos
@badbod2 ай бұрын
zed shell. zed, as in ex why zed , I guess zee is some foreign pronunciation of zed?
@user779hjg452 жыл бұрын
use macos instead of osx now
@TiberiusGracchi Жыл бұрын
pwd | pbcopy to copy current dir
@NagaVenkataPradeepNamburi2 жыл бұрын
osx plugin has been renamed as macos.
@idouxda8 ай бұрын
copydir is no more. 404 error.
@TheRafark6 ай бұрын
I call it “make dir” too
@fc9782 жыл бұрын
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
@TravisMedia2 жыл бұрын
Done! Thanks for the suggestion
@dyay1083 жыл бұрын
I, too, call it "make dir"!!!!
@MortalJupiter Жыл бұрын
Anyone watching this now: OSX is now macos
@xnivaxhzne2 жыл бұрын
Copydir moved to copypath
@fadecomic3 жыл бұрын
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.
@BrianBrown-o1sАй бұрын
Maxie Courts
@Tom-hq7sp2 жыл бұрын
src plugin is unnecessary. type zsh and exactly the same will happen.
@Cybersanke Жыл бұрын
You can literally do all of this without even using a plugin manager they are unnecessary bloat.
@stumph32 жыл бұрын
copydir is now copypath
@davidbasil31612 жыл бұрын
just use regular bash, it's everywhere
@linuxramblingproductions85542 жыл бұрын
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
@marcuswaterloo Жыл бұрын
Doovde player
@akshitarora4702 жыл бұрын
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?
@RayParker3 жыл бұрын
sudo !! runs the last command via sudo. (SueDoo)
@TravisMedia3 жыл бұрын
That’s 5 extra key presses 😃
@RayParker3 жыл бұрын
@@TravisMedia 6
@RayParker3 жыл бұрын
Or, is that 7?
@TravisMedia3 жыл бұрын
@@RayParker Esc Esc = 2 Sudo !! = 7 7 - 2 = 5 That’s the way I saw it 🤷♂️
@TravisMedia3 жыл бұрын
@@RayParker But the petty math aside I did not know about sudo !! and really glad you mentioned it.