ðLevel up your Linux Shell
āļāļēāļĢāļāļīāļāļāļąāđāļāđāļĨāļ°āļāļĢāļąāļāđāļāđāļ Zsh Shell āļāđāļ§āļĒ Powerlevel10k
āļŠāļģāļŦāļĢāļąāļ Windows (WSL2)
āļŠāļģāļŦāļĢāļąāļ Linux āđāļĨāļ° MacOS
Oh my Zsh Cheatsheet
Quick reference:
Oh My Zsh's Command-Line Interface (CLI):
omz
. Runomz --help
for available commands.To update Oh My Zsh:
omz update
.To uninstall it:
uninstall_oh_my_zsh
.To apply changes made to
.zshrc
:omz reload
(this just runsexec zsh
). Do NOT runsource ~/.zshrc
.
āļāļąāļ§āļāļĒāđāļēāļāļāļēāļĢāļāļąāđāļāļāđāļē plugins āđāļ āđāļāļĨāđ .zshrc
# Which plugins would you like to load?
# Standard plugins can be found in $ZSH/plugins/
# Custom plugins may be added to $ZSH_CUSTOM/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup.
plugins=(common-aliases history git zsh-autosuggestions zsh-syntax-highlighting kubectl emoji encode64 dirhistory web-search macos sudo web-search c
opyfile copybuffer JsonTools colored-man-pages command-not-found pip python rust brew docker golang history-substring-search iterm2)
Commands
alias
List all aliases
mkcd
Create a new directory and change to it, will create intermediate directories as required.
take
Like mkcd
, but also knows how to handle remote URLs. When given an argument that looks like a URL (something that ends in .git
or .tar.(gz|bz2|xz)
), download the remote resource and extract it (if necessary) into the current directory. Then change to the newly extracted/downloaded/cloned directory.
zsh_stats
Get a list of the top 20 commands and how many times they have been run.
Directory
md
mkdir -p
rd
rmdir
cd
/ ~
cd
to your home directory
..
cd ..
...
cd ../..
....
cd ../../..
.....
cd ../../../..
/
cd /
d
dirs -v
(lists last visited directories)
cd +n
Switch to directory number n
-
cd
to last visited directory
1
cd -1
2
cd -2
3
cd -3
4
cd -4
5
cd -5
6
cd -6
7
cd -7
8
cd -8
9
cd -9
Top Popular ZSH Plugins on GitHub
āļ āļēāļĒāđāļāđāļāđāļĢāļāļāļāļĢāļĩāđ /etc
āļāļ°āļĄāļĩāđāļāļĨāđāļāļĩāđāļāļ·āđāļāļ§āđāļē lsb-release
āļāļąāļāļāļģāļŠāļąāđāļāļāđāļēāļāļĨāđāļēāļ

Last updated
Was this helpful?