DEV Community


Discussion on: Oh My Glob: alias expansion in zsh

vonheikemen profile image

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.

glasnt profile image
Katie McLaughlin Author

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!