Skip to content

Instantly share code, notes, and snippets.

@imty42
Last active October 30, 2016 06:23
Show Gist options
  • Save imty42/d8ccc5f0aa74873f147b5866514912d9 to your computer and use it in GitHub Desktop.
Save imty42/d8ccc5f0aa74873f147b5866514912d9 to your computer and use it in GitHub Desktop.
My tmux config sharing.
unbind C-b
set -g prefix C-s
# bind a reload key
bind R source-file ~/.tmux.conf \; display-message "Config reloaded.."
# Use vim keybindings in copy mode
setw -g mode-keys vi
# invoke reattach-to-user-namespace every time a new window/pane opens
#set-option -g default-command "reattach-to-user-namespace -l fish"
# start selecting text typing 'v' key (once you are in copy mode)
#bind-key -t vi-copy v begin-selection
# copy selected text to the system's clipboard
#bind-key -t vi-copy y copy-pipe "reattach-to-user-namespace pbcopy"
# Status bar
# colors
set -g status-bg black
set -g status-fg white
# alignment
set-option -g status-justify centre
# spot at left
set-option -g status-left '#[bg=black,fg=green][#[fg=cyan]#S#[fg=green]]'
set-option -g status-left-length 20
# window list
setw -g automatic-rename on
set-window-option -g window-status-format '#[dim]#I:#[default]#W#[fg=grey,dim]'
set-window-option -g window-status-current-format '#[fg=cyan,bold]#I#[fg=blue]:#[fg=cyan]#W#[fg=dim]'
# spot at right
set -g status-right '#[fg=green][#[fg=cyan]%Y-%m-%d#[fg=green]]'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment