Quick reference

Cheatsheet

The commands and directory aliases Oh My Zsh puts at your fingertips. Documentation for each plugin lives in that plugin's README.

01The four commands to know

Oh My Zsh's command-line interface is omz — run omz --help for everything it can do.

omz update

Update Oh My Zsh to the latest version.

omz reload

Apply changes made to .zshrc — this just runs exec zsh.

omz --help

List every available CLI command.

uninstall_oh_my_zsh

Remove Oh My Zsh entirely.

Do not run source ~/.zshrc to reload — use omz reload. Why? See the FAQ.

02Commands

CommandDescription
aliasList all aliases
mkcdCreate a new directory and change to it — creates intermediate directories as required.
takeLike mkcd, but also knows how to handle remote URLs. Given an argument that looks like a URL (ending in .git or .tar.(gz|bz2|xz)), it downloads the remote resource, extracts it if necessary into the current directory, then changes to the newly extracted / downloaded / cloned directory.
zsh_statsGet a list of the top 20 commands and how many times they have been run.

03Directory navigation

Every alias, and the command it expands to.

mdmkdir -p
rdrmdir
~cd  (home directory)
..cd ..
...cd ../..
....cd ../../..
.....cd ../../../..
/cd /
ddirs -v (last visited dirs)
cd +nswitch to directory number n
-cd to last visited directory
1cd -1
2cd -2
3cd -3
4cd -4
5cd -5
6cd -6
7cd -7
8cd -8
9cd -9

This wiki is automatically published from ohmyzsh/wiki — to edit this page, make your changes there and submit a Pull Request. This section shows the main Oh My Zsh tricks; per-plugin documentation lives in each plugin's README.