Step-by-Step Guide: Installing Oh My Zsh on Termux for an Enhanced Shell Experience
Prerequisites
- A Unix-like operating system such as macOS, Linux, or BSD. On Windows, WSL2 is preferred, though Cygwin or MSYS may also work.
-
Zsh must be installed (v4.3.9 or newer is supported, with 5.0.8+ recommended).
Verify using
zsh --version. If it is not installed, follow: Installing ZSH curlorwgetinstalledgitinstalled (version 2.4.11 or higher recommended)
Basic Installation
Oh My Zsh can be installed using any of the following commands:
-
Using curl
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" -
Using wget
sh -c "$(wget -O- https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" -
Using fetch
sh -c "$(fetch -o - https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
Install Oh My Zsh on Termux
Step 1: Install Termux
Install Termux from the Google Play Store if it is not already installed.
Step 2: Update Package Lists
Open Termux and update the package lists:
pkg update
Step 3: Install Required Packages
Install the required dependencies:
pkg install git zsh
Step 4: Set Zsh as the Default Shell
Set Zsh as your default shell:
chsh -s zsh
Step 5: Restart Termux
Close Termux and open it again to start using Zsh.
Step 6: Install Oh My Zsh
Download and install Oh My Zsh:
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
Step 7: Complete Setup
When prompted, type Y and press Enter to confirm Zsh as the default shell.
Step 8: Customize Oh My Zsh
Edit the ~/.zshrc file using Nano or Vim to customize your setup.
Step 9: Apply Changes
Apply changes by restarting Termux or running:
source ~/.zshrc
Oh My Zsh is now successfully installed on Termux and ready for customization.