
What you need
- An Ubuntu system with a user account that can use
sudo. - An internet connection.
- Zsh, Git and curl, which you will install in step 1.
The Oh My Zsh README notes that Zsh 5.0.8 or newer is preferred and recommends Git 2.4.11 or newer. Ubuntu's repositories provide versions well above both.
Step 1: Install Zsh, Git and curl
sudo apt update
sudo apt install zsh git curl -yConfirm Zsh is installed:
zsh --versionStep 2: Install the Framework
Run the official install script:
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"If you prefer wget:
sh -c "$(wget -O- https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"The installer clones Oh My Zsh into ~/.oh-my-zsh, renames any existing ~/.zshrc to ~/.zshrc.pre-oh-my-zsh, creates a new ~/.zshrc and offers to make Zsh your default shell.
Want to read the script before running it? Download install.sh, review it, then run sh install.sh. You can also install from the source ZIP.
Step 3: Make Zsh your default shell
If you did not accept the prompt during installation, change the shell yourself:
chsh -s $(which zsh)Log out and back in (or reboot) for the change to apply. Verify with:
echo $SHELLIt should print a path ending in zsh.
If you see the zsh-newuser-install menu
Running Zsh before Oh My Zsh creates a ~/.zshrc shows a first-run configuration menu. Oh My Zsh creates the file for you, so you can simply quit that menu and continue with the installation.
Step 4: Pick a theme and plugins
Open your configuration:
nano ~/.zshrcSet a theme and a few plugins. The bundled ubuntu plugin adds shortcuts for apt, and command-not-found suggests packages when you type a missing command:
ZSH_THEME="robbyrussell"
plugins=(git ubuntu command-not-found z sudo)Save with Ctrl + O, exit with Ctrl + X, then reload:
omz reloadFor more ideas, read the themes guide and the plugins guide.
Installing on Ubuntu Server
Oh My Zsh works the same over SSH. For automated provisioning, the installer supports an --unattended flag, which skips changing the default shell and does not start Zsh at the end:
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattendedRemember to run chsh afterwards if you want Zsh as the login shell.
Keeping it updated
Oh My Zsh checks for updates periodically and, by default, asks before updating. Update manually at any time:
omz updateRemoving the Framework from Ubuntu
Run the built-in uninstaller, which removes Oh My Zsh and restores your previous configuration where possible:
uninstall_oh_my_zshTo return to Bash as your default shell:
chsh -s $(which bash)Running into problems? Check the troubleshooting guide. Using Windows? Follow Oh My Zsh on Windows with WSL.
Preparing a reliable Ubuntu installation
Ubuntu offers a straightforward environment for Oh My Zsh, but a successful setup begins with understanding which account and shell will be configured. Install the prerequisites through the distribution package manager, confirm that the zsh executable is available and check that Git can access the source repository. Perform the setup as your normal user rather than running the framework installer with unnecessary administrative privileges. The installer affects your personal shell configuration and does not require ownership of system directories. If you administer a shared machine, distinguish clearly between changes made for a single account and changes intended for all users.
Before installation, inspect any existing ~/.zshrc file. A development workstation may already contain aliases, proxy settings, environment variables or initialization code required by your tools. Make a backup and compare it with the new configuration instead of overwriting it blindly. Environment variables that determine program locations or authentication methods deserve particular attention. Once Zsh launches, verify that everyday commands such as Git and your preferred language runtime remain accessible. A new prompt is useful only if it preserves the behaviour of the tools you rely on.
Adapting Ubuntu desktop and server workflows
On Ubuntu Desktop, the terminal emulator handles appearance while Zsh interprets commands. Choose a theme that suits the emulator, then confirm font rendering and colour contrast. On Ubuntu Server, visual effects are less important than predictable behaviour over SSH. A conservative prompt that displays host identity, current directory and command status is often the better choice. Avoid slow network requests or visually elaborate segments in login scripts, particularly on machines accessed through high-latency connections. Your configuration should remain readable even when special glyphs cannot be rendered by a remote client.
Administrators should also consider how non-interactive sessions behave. Scripts executed through cron, automation or remote commands may not read the same configuration files as interactive terminals. Do not depend on a theme or plugin to provide executable paths for production scripts. State required environments explicitly and test scripts under the conditions in which they will actually run. This separation between shell comfort and automation reliability is a hallmark of a well-managed Unix environment. It also makes future upgrades less likely to interrupt scheduled jobs or deployment tasks.
Upgrade and recovery practices
After installation, retain the original configuration backup and note any plugins or themes added outside the core framework. Review updates before applying them to an especially sensitive workstation or server. When troubleshooting, launch a clean Zsh session to determine whether a problem originates in your configuration or the underlying operating system. If you change the default login shell, keep a working Bash session available until you confirm that new logins succeed. Reversibility matters: a dependable terminal setup is one that can be repaired quickly without disrupting other responsibilities.
Conclusion
A good Ubuntu installation is secure, reversible and simple to understand. Prepare the required packages, protect your existing configuration and configure Oh My Zsh for the account that actually needs it. Choose restrained defaults for servers and more expressive themes where interactive use justifies them. With careful updates, reliable backups and a separation between personal shell settings and automation, Oh My Zsh becomes a productive addition to Ubuntu rather than a maintenance burden.

