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.
Install the zsh package using the Termux package manager
Start zsh, which will show a
% character as the prompt
Set the shell to run zsh by default
Install Oh My Zshλ︎
Install Oh My Zsh via curl (or wget if preferred) in the
Powerline10k is a visually appealing prompt with a setup script to visually choose the presentation of the prompt.
~/.zshrc and set the theme to
Save the changes
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 (without prompting for a restart).
The powerline10k setup script provides a wizard to configure each part of the prompt.
p10k configurecommand will manually run the powerline10k setup script.
Prezto Zsh community configuration
NOTE: previous attempts to use Prezto proved to have issues
Clone prezto and its sub-modules into
XDG_CONFIG_HOME/zsh which is typically
Set the location of the Zsh configuration home with
$ZDOTDIR, relative to the XDG locations
Create a new Zsh configuration by copying/linking the Zsh configuration files provided:
Practicalli Zsh configuration
Clone practicalli/dotfiles and replace the symbolic links in
$XDG_CONFIG_HOME/zsh with links to the respective Zsh configuration files in the cloned repository (or copy the files if you prefer)
Copy or create a symbolic like for the
.p10k configuration or skip this to create your own configuration when next startingzsh
$XDG_CONFIG_HOME/.config/zsh/.zshenv and add the following lines to enable zsh to find the prezto configuration
Create a symbolic link from
$XDG_CONFIG_HOME/.config/zsh/.zshenv (or to the .zshenv file from practicalli/dotfiles)
Check the configuration is working by loading the .zshenv configuration
Using Oh My Bash
If preferring Bash, then ohmybash provides a nice command line experience, showing completions clearer, nice themes that provide information.