Skip to content

Instantly share code, notes, and snippets.

@samsoir
Created November 3, 2013 22:53
Show Gist options
  • Save samsoir/7295799 to your computer and use it in GitHub Desktop.
Save samsoir/7295799 to your computer and use it in GitHub Desktop.
bind s split-window -v
bind v split-window -h
bind ^s split-window -v
bind ^v split-window -h
# move around panes with hjkl, as one would in vim after pressing ctrl-w
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind ^h select-pane -L
bind ^j select-pane -D
bind ^k select-pane -U
bind ^l select-pane -R
bind < resize-pane -L 1
bind > resize-pane -R 1
bind - resize-pane -D 1
bind + resize-pane -U 1
bind : command-prompt
bind C new-session
bind L choose-session
setw -g mode-keys vi
# Set the prefix to ^A, like screen
# unbind C-b
# set -g prefix ^A
# bind a send-prefix
bind ^a last-window # toggle last window like screen
set -g update-environment "DISPLAY WINDOWID SSH_ASKPASS SSH_AGENT_PID SSH_CONNECTION"
bind K confirm kill-server
bind X confirm kill-window
set -g default-terminal "screen-256color"
set-option -g default-command "reattach-to-user-namespace -l zsh"
set -g base-index 1
set -g history-limit 10000
# let us use utf-8 drawing characters to make tab-like window formats
setw -g utf8 on
set -g status-utf8 on
set -g status-bg default
set -g status-fg white
# left side of status bar holds "(>- session name -<)"
set -g status-left-length 100
set -g status-left-bg green
set -g status-left-fg black
set -g status-left-attr bold
set -g status-left ''
# right side of status bar holds "[host name] (date time)"
set -g status-right-length 100
set -g status-right-fg black
set -g status-right-attr bold
set -g status-right '#[fg=colour214,bg=colour235] #H#[fg=colour238]:#[fg=colour178]#S #[fg=colour039,bg=colour238] %y.%m.%d %H:%M '
# make background window look like white tab
set-window-option -g window-status-bg default
set-window-option -g window-status-fg white
set-window-option -g window-status-attr none
set-window-option -g window-status-format '#[fg=colour214,bg=colour235] #I #[fg=white,bg=colour236] #W #[default]'
# make foreground window look like bold yellow foreground tab
set-window-option -g window-status-current-attr none
set-window-option -g window-status-current-format '#[fg=black,bg=colour214] #I #[fg=brightwhite,bg=colour238] #W #[default]'
# active terminal yellow border, non-active white
set -g pane-border-bg default
set -g pane-border-fg colour238
set -g pane-active-border-bg default
set -g pane-active-border-fg colour214
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment