Last active
January 17, 2017 17:24
-
-
Save michaelvobrien/3607824 to your computer and use it in GitHub Desktop.
Tmux Remote
This file contains hidden or 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
################################################## | |
# set-option (alias: set) | |
# set-window-option (alias: setw) | |
# bind-key (alias: bind) | |
# unbind-key (alias: unbind) | |
################################################## | |
# prefix | |
set -g prefix M-` | |
unbind C-b | |
# basic | |
setw -g mode-keys emacs | |
set -g status-keys emacs | |
set -g history-limit 5000 | |
set -g default-terminal screen-256color | |
set -g repeat-time 1000 | |
# status | |
set -g base-index 1 | |
set -g status-bg colour10 | |
set -g status-fg black | |
setw -g window-status-current-bg white | |
setw -g window-status-current-fg black | |
setw -g message-bg black | |
setw -g message-fg colour9 | |
# pane | |
set -g pane-active-border-fg white | |
set -g pane-border-fg colour8 | |
# mouse | |
set -g mouse-select-pane on | |
set -g mouse-resize-pane on | |
setw -g mode-mouse on | |
# bindings | |
bind M-` last-window | |
bind -n M-} next-window | |
bind -n M-{ previous-window | |
bind -n M-1 select-window -t :1 | |
bind -n M-2 select-window -t :2 | |
bind -n M-3 select-window -t :3 | |
bind -n M-4 select-window -t :4 | |
bind -n M-5 select-window -t :5 | |
bind 0 break-pane -d | |
bind 2 split-window -v | |
bind 3 split-window -h | |
bind . command-prompt "swap-window -t '%%'" | |
bind / command-prompt "split-window -h 'exec man %%'" | |
bind R source-file ~/.tmux.conf | |
bind k kill-pane | |
# access clipboard from tmux | |
bind C run-shell "tmux showb | ssh localhost pbcopy" | |
bind V run-shell "tmux setb \"`ssh localhost pbpaste`\"" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment