Carrier-grade NAT demo on linux
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
1.4 KiB

# screen like prefix
set-option -g prefix C-a
unbind-key C-b
bind-key a send-prefix
bind-key C-a last-window
# Ctrl-N for next window
# bind-key -T root ^N next-window
bind-key -n ^N next-window
# Ctrl-P for previous window
# bind-key -T root ^P previous-window
bind-key -n ^P previous-window
# ctrl-arrow keys
set-window-option -g xterm-keys on
# layout/colours
set-option -g status-bg black
set-option -g status-fg colour45
set-option -g status-justify centre
set-option -g status-keys vi
set-option -g status-left "#[fg=green][ #H ]#[fg=red] [ #W ]"
set-option -g status-left-length 40
set-option -g status-right "#[fg=colour5][ %H:%M %d-%b-%y ]"
#set-option -g status-utf8 on
set-window-option -g monitor-activity on
set-window-option -g window-status-current-style bold
set-window-option -g window-status-current-format "#[fg=colour196](#[fg=default]#I#F #W#[fg=colour196])"
set-window-option -g window-status-format "[#I#F #W]"
#set-window-option -g window-status-alert-fg color226
set-option -g set-titles on
set-window-option -g automatic-rename off
set-window-option -g allow-rename on
# destroy instead of detach
bind-key d confirm-before -p "kill session #S? (y/n)" kill-session
# vim style :quit / :q
set-option -s command-alias[200] quit='confirm-before -p "kill session #S? (y/n)" kill-session'
set-option -s command-alias[201] q='confirm-before -p "kill session #S? (y/n)" kill-session'
# new -n bash "exec /bin/bash"
# ...