Skip to content

fridfn/termux-setup-ui

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

21 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ’œ Termux Custom Setup - FaDevelopment

Beautiful, functional, and personalized CLI environment for Termux
Created by Farid Fathoni Nugroho

A comprehensive Termux configuration featuring a custom Zsh theme, intelligent bash functions, and developer-focused shortcuts for an enhanced mobile development experience.


✨ Features

  • 🎨 Custom ASCII Art Banner - Beautiful purple-cyan gradient welcome screen
  • πŸš€ Smart Command Aliases - Quick shortcuts for common tasks
  • πŸ“ Enhanced Directory Listing - Colorful and informative ls output
  • πŸ”§ Developer Tools Integration - Git, Node.js, PHP, MariaDB, Redis, and more
  • 🎯 Custom Functions - Code editor integration, dynamic MOTD, and more
  • πŸ“š Quick Reference System - Built-in documentation for React, JavaScript, Git, and Termux commands
  • 🌈 Base16 3024 Color Scheme - Eye-friendly dark theme with vibrant accents
  • ⚑ Oh My Zsh Integration - Enhanced shell with plugins and custom theme

πŸ“¦ Installation

Prerequisites

  • Termux installed on Android device
  • Internet connection for package downloads
  • Storage permission granted to Termux

Quick Install

  1. Clone or download this repository:

    cd ~
    git clone <your-repo-url> termux-setup
    cd termux-setup
  2. Run the setup script:

    chmod +x setup.sh
    ./setup.sh
  3. Follow the prompts:

    • Choose whether to install packages from packages.txt
    • Decide if you want Oh My Zsh installed (recommended)
  4. Restart Termux to apply all changes


🎨 What Gets Installed

Configuration Files

File Location Purpose
.zshrc ~/ Zsh configuration with custom theme
.bashrc ~/ Bash configuration with functions and aliases
.profile ~/ Sources .bashrc on login
colors.properties ~/.termux/ Custom color scheme
termux.properties ~/.termux/ Termux app settings
exfavorite.zsh-theme ~/.oh-my-zsh/custom/themes/ Custom Zsh prompt theme

Key Packages

Development Tools:
- git, gh (GitHub CLI)
- nodejs, yarn, npm
- php, php-fpm, composer
- python, python-pip
- clang, make, llvm

Database & Cache:
- mariadb, redis

Networking:
- nginx, openssh
- curl, wget (via inetutils)

Utilities:
- zsh, oh-my-zsh
- nano, tree, neofetch
- figlet, jp2a
- ncdu, man, less

πŸš€ Usage Guide

Custom Banner

Every time you open a new terminal session or type clear, you'll see:

   ____  _____      _____                     _ _
  / __ \| ____|_  _|  ___|_ ___   _____  _ __(_) |_ ___
 / / _ `|  _| \ \/ / |_ / _ `\ \ / / _ \| "__| | __/ _ \
| | (_| | |___ >  <|  _| (_| |\ V / (_) | |  | | ||  __/
 \ \__,_|_____/_/\_\_|  \__,_| \_/ \___/|_|  |_|\__\___|
  \____/ By : Farid Fathoni N ~

  Selamat datang di terminal @FaDevelopment !

Custom Functions

color()

Apply colors to terminal output:

color "Hello World" purple
color "Error message" red
color "Success!" green

Available colors: black, red, green, yellow, blue, purple, cyan, white

code()

Open files in Acode editor:

code                    # Open Acode
code index.html         # Open specific file
code src/App.jsx        # Open with path

Enhanced ls

Automatically shows:

  • Colored directory listing
  • Current working directory
  • Decorative borders

🎨 Customization

Changing the Banner

Edit the ASCII art in .bashrc:

nano ~/.bashrc
# Find the clear() function and modify the echo statements

Adding New Aliases

obash
# Add at the bottom:
alias mycommand="your command here"
# Save, then:
reload

Modifying Colors

Edit the color scheme:

nano ~/.termux/colors.properties

Creating Custom Documentation

Add your own reference guides:

cd ~/kamus
nano myguide.sh
# Write your guide, then add alias in .bashrc:
alias myguide='~/kamus/myguide.sh'

πŸ“š Oh My Zsh Integration

Included Plugins

  • git - Git aliases and tab completion
  • zsh-autosuggestions - Fish-like command suggestions
  • zsh-syntax-highlighting - Real-time syntax highlighting

Theme: exfavorite

Custom theme featuring:

  • Current directory display
  • Git branch and status indicators
  • Color-coded prompt based on command success
  • Clean, minimal design

πŸ”§ Troubleshooting

MOTD Not Updating

If the welcome message doesn't match your .bashrc banner:

bash ~/.update_motd.sh

Zsh Theme Not Loading

Ensure the theme file exists:

ls ~/.oh-my-zsh/custom/themes/exfavorite.zsh-theme

If missing, copy from backup:

cp oh-my-zsh-custom/themes/exfavorite.zsh-theme ~/.oh-my-zsh/custom/themes/

Colors Not Working

Check if colors.properties is in the right place:

ls ~/.termux/colors.properties

Apply colors:

termux-reload-settings

Aliases Not Found

Reload your configuration:

source ~/.bashrc
source ~/.zshrc

πŸ—‚οΈ Project Structure

termux-setup/
β”œβ”€β”€ .bashrc                      # Bash configuration & aliases
β”œβ”€β”€ .zshrc                       # Zsh configuration
β”œβ”€β”€ .profile                     # Login profile
β”œβ”€β”€ .termux/
β”‚   β”œβ”€β”€ colors.properties        # Color scheme
β”‚   └── termux.properties        # App settings
β”œβ”€β”€ oh-my-zsh-custom/
β”‚   └── themes/
β”‚       └── exfavorite.zsh-theme # Custom Zsh theme
β”œβ”€β”€ kamus/                       # Reference guides (not included)
β”‚   β”œβ”€β”€ termux.sh
β”‚   β”œβ”€β”€ github.sh
β”‚   β”œβ”€β”€ react.sh
β”‚   β”œβ”€β”€ javascript.sh
β”‚   └── color.sh
β”œβ”€β”€ packages.txt                 # Package list
β”œβ”€β”€ setup.sh                     # Automated setup script
└── README.md                    # This file

🀝 Contributing

This is a personal configuration, but feel free to:

  • Fork and adapt for your needs
  • Suggest improvements via issues
  • Share your own customizations

πŸ“„ License

This configuration is free to use and modify. Created with πŸ’œ by Farid Fathoni Nugroho.


πŸ™ Acknowledgments

  • Oh My Zsh - Framework for managing Zsh configuration
  • Base16 - Color scheme foundation
  • Termux Community - For the amazing Android terminal emulator

πŸ“ž Support

If you encounter issues:

  1. Check the troubleshooting section above
  2. Review your modifications to config files
  3. Restore from backup if needed

Happy coding from your mobile terminal! πŸš€πŸ’œ

"Coding isn't just about logic... it's about putting your heart into the screen."
β€” Farid Fathoni Nugroho

About

ExFavorite dev custom ui display.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages