Skip to content

Customise shellλ︎

Customising the shell is optional, although gives an enhanced experience.

Zsh provides the richest command line experience, providing many advanced features over bash. Oh My Zsh is a community configuration that provides a simple way to configure Zsh features and also supports powerline10k terminal theme, providing context specific information and a more engaging visual experience.

Oh My Zsh community configuration enhances the Zsh experience. Practicalli normally uses Prezto community configuration, unfortunately this did not work well on Termux.

Install Zshλ︎

Install the zsh package using the Termux package manager

pkg install zsh

Start zsh, which will show a % character as the prompt

zsh

Set the shell to run zsh by default

chsh -s zsh

Install Oh My Zshλ︎

Install Oh My Zsh via curl (or wget if preferred) in the .oh-my-zsh/ directory

sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

Install Powerline10kλ︎

Powerline10k is a visually appealing prompt with a setup script to visually choose the presentation of the prompt.

git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k

Next time zsh is run, powerline10k setup script will run. If Meslo is not set as the terminal font, the setup script offers to install the font. Installing the font will restart Termux.

p10k configure to manually run the powerline10k setup script.

Using Oh My Bash

If preferring Bash, then ohmybash provides a nice command line experience, showing completions clearer, nice themes that provide information.