# mytty **Repository Path**: x2x4/mytty ## Basic Information - **Project Name**: mytty - **Description**: 定制tty - **Primary Language**: Shell - **License**: GPL-3.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2013-07-25 - **Last Updated**: 2020-12-18 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # MyTTY Actually just yet another customized Bash PS1. Reserve the project and script names for historical reason. ## Screenshot * Terminator on ArchLinux ![mytty screenshot in Terminator on ArchLinux](doc/terminator_screenshot.png) * JuiceSSH on Android ![mytty screenshot in JuiceSSH on Android](doc/juicessh_screenshot.png) ## Installation ```bash cd /etc/profile.d && ln -svfn /abs/path/of/customertty.sh . ``` `ifconfig` is not shipped in CentOS since 7, `net-tools` is required to install. ```bash sudo yum install -y net-tools ``` ## Feature 1. Almost realtime show IP address of generic network interfaces. 2. Almost realtime show online users status. ### IP address Hard-code supported network interface started with `en`, `wl`, `ww`, `br`, `tun`, `eth`, `em`, `docker`. #### Why use ifconfig Coz `ip` is not builtin command in macOS. ### Online user status explained `Online 1 users, zach.zhang (t: 2, r: 1_2, l: 0)`: * `1 users`: logined user with unique username is 1. * `t: 2`: the user's total login session is 2. * `r: 1_2`: the user's remote login status: 1. left number `1` is number of unique login IP address. 2. right number `2` is number of total login session of the user. * `l: 0`: the user's local login session is 0. ## Supported distro * CentOS * Debian * macOS ## Authors * Jacky Xu (x2x4com@gmail.com) is the author of original edition written by Perl. * Zach Zhang (zachzhang0213) is the maintainer of current version rewrited by AWK. ## License [GNU GPLv3](./LICENSE)