Skip to content

swomf/netmask-zsh-theme

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Netmask theme

A non-intrusive, Termux-first utilitarian theme for oh-my-zsh.

  • IPv4 address
    • compatible with both Termux-friendly ifconfig and normal devices' ip addr
  • Full directory structure
  • Git branch and status
  • Virtual environment

Netmask theme preview

Tested on rootless Android 13+ Termux and various desktop Linux distributions.

Installation

Although Termux users can simply manually copy netmask.zsh-theme to the $ZSH/themes directory, it is recommended to run the interactive installer.

$ git clone https://github.com/swomf/netmask-zsh-theme
$ cd netmask-zsh-theme
$ ./install.sh

The installer does the following:

  • Replaces ifconfig calls with ip addr calls for non-Termux users
  • Replaces wlan0 with your chosen Predictable Network Interface Name
  • Ensures that permissions are set correctly for non-Termux users

Known bugs

If the git emblems ✱ ✗ ➦ ✂ ✈ do not appear, add the following to your ~/.zshrc, before Oh My Zsh is sourced. See ohmyzsh #12328

zstyle ':omz:alpha:lib:git' async-prompt no

Attribution

About

A utilitarian, horizontal-space-saving oh-my-zsh theme that shows your IP, even on Termux

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages