Skip to content

rashed145/polus-bash-theme

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

polus-bash-theme

Polus is a fast and modern bash theme. It is very lightweight and completely written in bash without additional dependencies. It has less than 100 lines of code.

Installation

sed -i '\,\. ~/.config/bash/themes/polus.bash-theme,d' ~/.bashrc
curl -fsSL https://raw.githubusercontent.com/rashed145/polus-bash-theme/master/polus.bash-theme -o ~/.config/bash/themes/polus.bash-theme --create-dirs
echo "[ -r ~/.config/bash/themes/polus.bash-theme ] && . ~/.config/bash/themes/polus.bash-theme"| tee -a ~/.bashrc

Customization

Just edit the variables in the polus.bash-theme file according to your needs. You can customize the time format using PTMFMT variable. Available options:

\t the current time in 24-hour HH:MM:SS format
\T the current time in 12-hour HH:MM:SS format
\@ the current time in 12-hour am/pm format
\A the current time in 24-hour HH:MM format

Font to use

I recommend Hack Nerd Font for this theme. You can use any other Nerd Font you like. But Nerd Font is recommended.

Download Hack Nerd Font

Install Hack Nerd Font in termux

curl -L https://github.com/ryanoasis/nerd-fonts/blob/v2.2.2/patched-fonts/Hack/Regular/complete/Hack%20Regular%20Nerd%20Font%20Complete.ttf?raw=true -o ~/.termux/.fonts/Hack.ttf --create-dirs
ln -sf ~/.termux/{.fonts/Hack.ttf,font.ttf}
termux-reload-settings

Screenshots

Facebook: Rashedul Hasan Rafi

About

Modern lightweight Bash theme

Topics

Resources

License

Stars

Watchers

Forks

Languages