Created
October 14, 2014 19:02
-
-
Save gordyt/bf6ebf9a57ab6b66ae42 to your computer and use it in GitHub Desktop.
sample tmux config file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Enable Chris Johnson's wrapper to allow tmux to have access | |
# to pbcopy and pbpaste commands. | |
# Examples: | |
# 1. send contents of current tmu buffer to system clipboard: | |
# tmux show-buffer | pbcopy | |
# 2. paste clipboard contents: | |
# tmux set-buffer pbpaste; tmux paste-buffer | |
set-option -g default-command "reattach-to-user-namespace -l zsh" | |
# This wrapper does not work with tmux's run command so we map C-c and C-v | |
# to do the right thing. | |
# NOTE: Not sure this is working so have commented out for now | |
# bind C-c run "tmux save-buffer - | reattach-to-user-namespace pbcopy" | |
# bind C-v run "tmux set-buffer $(reattach-to-user-namespace pbpaste); tmux paste-buffer" | |
# Add 'yyyy-mm-dd (day), hh:mm' to right side of status bar | |
set -g status-right '#(date +"%Y-%m-%d \(%a\), %H:%M")' | |
# Toggle synchronize-panes (like cssh) on and off | |
bind C-s set-window-option synchronize-panes | |
# Set terminal for better color support by default | |
set -g default-terminal "screen-256color" | |
# Add bindings to simplify shifting windows left and right | |
bind-key -n C-S-Left swap-window -t -1 | |
bind-key -n C-S-Right swap-window -t +1 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment