Skip to content
superstringer edited this page Apr 15, 2019 · 1 revision

Tmux

Sample ~/.tmux.conf

#!bash
  # Set a Ctrl-b shortcut for reloading your tmux config
  bind r source-file ~/.tmux.conf

  # Rename your terminals
  set -g set-titles on
  set -g status-bg yellow
  set -g set-titles-string '#(whoami)::#h::#(curl ipecho.net/plain;echo)'

  # Status bar customization
  set -g status-utf8 on
  set -g status-bg black
  set -g status-fg white
  set -g status-interval 5
  set -g status-left-length 90
  set -g status-right-length 60
  #set -g status-left "#[fg=Green]#(whoami)#[fg=white]::#[fg=Cyan]#(hostname -s)#[fg=white]::##[fg=yellow]# 
  (curl ipecho.net/plain;echo) "
  set -g status-left "#[fg=Green]#(whoami)@#(hostname -s)::#(curl ipecho.net/plain;echo) "
  set -g status-justify left
  #set -g status-right '#[fg=Cyan]#S #[fg=white]%a %d %b %R'
  set -g status-right '#[fg=Cyan]#S #[fg=white]%a %b %d %R'

  # scrollback buffer
  set -g history-limit 10000

  # Set window split
  bind-key \ split-window -h
  bind-key | split-window -h
  bind-key - split-window -v
  bind-key _ split-window -v
  unbind '"'
  unbind %

  # C-b is not acceptable -- Vim uses it
  unbind C-b
  set-option -g prefix C-a
  bind-key C-a last-window

  # Enable mouse control (clickable windows, panes, resizable pans)
  set -g mouse on

Clone this wiki locally