Skip to content

Instantly share code, notes, and snippets.

@rahaaatul
Last active May 18, 2024 11:02
Show Gist options
  • Save rahaaatul/cc47d88dddd73a684e67bfa0f8b57d9d to your computer and use it in GitHub Desktop.
Save rahaaatul/cc47d88dddd73a684e67bfa0f8b57d9d to your computer and use it in GitHub Desktop.
Installing ZSH on Termux including themes & useful plugins

ZSH on Termux!

Spice up termux with beautiful themes and productivity plugins to make your life easier!

Install ZSH, GIT & LSD

pkg install zsh git lsd vim

Install Oh-My-Zsh

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

Add LSD alias to LS in ZSH config file

echo "alias ls=lsd" >> ~/.zshrc

Install Termux-style

git clone https://github.com/adi1090x/termux-style;cd termux-style;./install

Setup Termux-Style

termux-style
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
git clone https://github.com/TamCore/autoupdate-oh-my-zsh-plugins $ZSH_CUSTOM/plugins/autoupdate
git clone https://github.com/marlonrichert/zsh-autocomplete ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autocomplete
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting

Open and edit ZSH config file

cd $HOME;vim ./zshrc

Set theme in ZSH config file

ZSH_THEME="powerlevel10k/powerlevel10k" 

Set plugins in ZSH config file

plugins=(git autoupdate zsh-autocomplete zsh-autosuggestions zsh-syntax-highlighting)

Customize Update Frequency to daily

export UPDATE_ZSH_DAYS=1

Reload the shell:

source ~/.zshrc 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment