Skip to content

Instantly share code, notes, and snippets.

@cristobal
Last active December 23, 2015 22:50
Show Gist options
  • Select an option

  • Save cristobal/6706377 to your computer and use it in GitHub Desktop.

Select an option

Save cristobal/6706377 to your computer and use it in GitHub Desktop.
# Start numbering at 1
set -g base-index 1
# Allows for faster key repetition
set -s escape-time 0
# Rather than constraining window size to the maximum size of any client
# connected to the *session*, constrain window size to the maximum size of any
# client connected to *that window*. Much more reasonable.
setw -g aggressive-resize on
# Allows us to use C-a a <command> to send commands to a TMUX session inside
# another TMUX session
# bind-key a send-prefix
# Activity monitoring
#setw -g monitor-activity on
#set -g visual-activity on
# Terminal emulator window titles
# set -g set-titles on
# set -g set-titles-string "#T"
# Automatic layouting
# bind-key -n M-c kill-pane \; select-layout
# bind-key -n M-n split-window \; select-layout
# PowerLine Conf
source {pip_repository_root}/powerline/bindings/tmux/powerline.conf
####################################################
### @see https://mutelight.org/practical-tmux ###
##################################################
# C-b is not acceptable -- Vim uses it
# set-option -g prefix C-a
# bind-key C-a last-window
# Start numbering at 1
set -g base-index 1
# Allows for faster key repetition
set -s escape-time 0
# Set status bar
set -g status-bg black
set -g status-fg white
set -g status-left ""
set -g status-right "#[fg=green]#H"
# Rather than constraining window size to the maximum size of any client
# connected to the *session*, constrain window size to the maximum size of any
# client connected to *that window*. Much more reasonable.
setw -g aggressive-resize on
# Allows us to use C-a a <command> to send commands to a TMUX session inside
# another TMUX session
# bind-key a send-prefix
# Activity monitoring
#setw -g monitor-activity on
#set -g visual-activity on
# Example of using a shell command in the status line
#set -g status-right "#[fg=yellow]#(uptime | cut -d ',' -f 2-)"
# Highlight active window
set-window-option -g window-status-current-bg red
# Terminal emulator window titles
set -g set-titles on
set -g set-titles-string "#T"
# Automatic layouting
# bind-key -n M-c kill-pane \; select-layout
# bind-key -n M-n split-window \; select-layout
#######################################################
### @see https://gist.github.com/mahemoff/5176921 ###
#####################################################
# set-option -g default-command "reattach-to-user-namespace -l bash"
# bind C-c run "tmux save-buffer - | reattach-to-user-namespace pbcopy"
# bind C-v run "reattach-to-user-namespace pbpaste | tmux load-buffer - && tmux paste-buffer"
# set -g mode-mouse on
# set -g mouse-resize-pane on
# set -g mouse-select-pane on
# set -g mouse-select-window on
# set-window-option -g mode-mouse on
# set -g terminal-overrides 'xterm*:smcup@:rmcup@'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment