Guide · prerequisites
Oh My Zsh is a framework for Zsh, the Z shell — so Zsh must be installed and set as your default shell before anything else.
zsh 5.0.8 or more recent/usr/bin/zsh or similarsudo apt install zsh — see the platform matrix below), or from source following the Zsh FAQ instructions.zsh --version — expect zsh 5.0.8 or newer.chsh -s $(which zsh)
sudo chsh $USER (recent) or sudo lchsh $USER (older). This fails if Zsh isn't in /etc/shells or you lack chsh permission — in that case use a different procedure. The new shell takes effect after you restart — or run /bin/zsh.echo $SHELL → /bin/zsh or similar.$SHELL --version → zsh 5.8 or similar.zsh --version first — most versions ship Zsh (often older); want ≥ 5.0.8brew install zsh
Set as default (Homebrew installs): M1 Macs chsh -s $(which zsh) · Intel chsh -s /usr/local/bin/zsh · High Sierra and older chsh -s /bin/zsh. Non-standard-shell error? First run sudo sh -c "echo $(which zsh) >> /etc/shells". No Homebrew? MacPorts works too: sudo port install zsh zsh-completions.
apt install zsh
No apt? Try apt-get or aptitude [1][2][3][4]. Also covers Mint, elementary, Zorin, Raspbian, MX, Deepin.
zypper install zshpacman -S zshxbps-install zshdnf install zshpkg_add zshpkg install zsh
Or the port: cd /usr/ports/shells/zsh/ && make install clean. To reduce memory usage, optionally enable the zsh-mem options with make config before make install.
sudo yum update && sudo yum -y install zshapt-cyg install zsh
Cygwin has no standard CLI installer — set up apt-cyg first, or use the graphical installer. Easiest default-shell switch: create a SHELL user environment variable with value /usr/bin/zsh/ ("Edit environment variables for your account"). Alternatively open Cygwin in Bash, sudo nano ~/.bashrc, add exec zsh as the very first line, save, and reopen Cygwin — it will run Zsh on every launch.
eopkg it zshemerge app-shells/zshapk add zshpacman -S zshpkg install zsh
Termux is a terminal emulator for Android with Debian/Ubuntu-style tooling (Bash + Busybox, APT package manager). The pkg command mirrors FreeBSD's — or use apt update && apt upgrade && apt install zsh. Set default with chsh -s zsh.
slackpkg install zshThis wiki is automatically published from ohmyzsh/wiki — to edit this page, make your changes there and submit a Pull Request.