server tag is tag for server plugin on iterm2.
Color your tab and show server name on your iterm, when you ssh to server.
- check your python and pip using python3. only support Python 3.
python3 --version && pip3 --version
- install iterm2 library with python,
pip3 install iterm2 --user
- clone this project to your workspace
- use
install.sh
to install. you can manual install if this script is not work.
- check your python and pip using python3. only support Python 3.
python3 --version && pip3 --version
- install iterm2 library with python,
pip3 install iterm2 --user
- clone this project to your workspace
- edit .zshrc or .bashrc, add
alias ssh="xxx/server_tag/server_tag.py"
- edit .zshrc or .bashrc, add source
alias _ssh="/usr/bin/ssh"
(optional) - restart iterm2, test and check result for
ssh user@host
Edit server_config.json
. Outermost is server group, all server in same group use same color.
You can get RGB color on https://www.w3schools.com/colors/colors_rgb.asp.