DEV Community

Discussion on: Oh My Glob: alias expansion in zsh

Collapse
 
vonheikemen profile image
Heiker

The expansion should also work with special symbols like !! and !$.

If you forgot to add sudo before running a command you can type sudo !! + space to get right one.

Collapse
 
glasnt profile image
Katie McLaughlin

I knew of the sudo !! trick, but I never used it because I'd prefer to and edit to know exactly what I was running. This is a super useful extra trick! Thank you!