Skip to content

Instantly share code, notes, and snippets.

#!/bin/sh
# This script will monitor another NAT instance and take over its routes
# if communication with the other instance fails
# NAT instance variables
# Other instance's IP to ping and route to grab if other node goes down
NAT_ID=
NAT_RT_ID=
# My route to grab when I come back up
caption always "%{= wd}local %?%F%{= wd}%:%{= wd}%?%2n%f%07= %t%?%F%:%{= wd}%?%=%Y/%m/%d (Load:%l )"
hardstatus alwayslastline "%{= dw}[%02c:%s]%010=%-w%{= wd}%60>%n %t%{= dw}%+w%< %="
escape ^Tt
# *** CHANGE ME ***
# session name renamed to recognized easily at `screen -list'
sessionname xxxx
# I like a large scrollback
## allow utf8
#set-window-option -g utf8 on
## disable ESC delay
set -s escape-time 0
## set scrolback
set-option -g history-limit 50000
set-option -g buffer-limit 20
## set terminal title
set -g set-titles on
set -g set-titles-string "xxxx"