Skip to content

Instantly share code, notes, and snippets.

@tylerhoran
Created July 14, 2018 23:23
Show Gist options
  • Save tylerhoran/4178b89789e7970e04932e1c633b5bf4 to your computer and use it in GitHub Desktop.
Save tylerhoran/4178b89789e7970e04932e1c633b5bf4 to your computer and use it in GitHub Desktop.
new-session
split-window -v
split-window -h
set-window-option -g mouse on
set -g history-limit 30000
set -g default-terminal "screen-256color"
# Copy tmux buffer to X clipboard
# run -b runs a shell command in background
bind C-w run -b "tmux show-buffer | xsel -i"
# Paste from X clipboard into tmux; also replace LF characters with
# space as separator characters (-s) when pasting.
# Yank from clipboard
bind C-y run -b "xsel -ob | tmux load-buffer - && tmux paste-buffer -s ' '"
# Yank from primary
bind M-y run -b "xsel -o | tmux load-buffer - && tmux paste-buffer -s ' '"
# Same as `M-y' binding except that the newline chars are not replaced with space
bind Y run -b "xsel -o | tmux load-buffer - && tmux paste-buffer"
set-option -ag terminal-overrides ",screen:Ms=\\E]52;c;%p2%s\\7"
#### COLOUR (Solarized dark)
# default statusbar colors
set-option -g status-bg black #base02
set-option -g status-fg yellow #yellow
set-option -g status-attr default
# default window title colors
set-window-option -g window-status-fg brightblue #base0
set-window-option -g window-status-bg default
#set-window-option -g window-status-attr dim
# active window title colors
set-window-option -g window-status-current-fg brightred #orange
set-window-option -g window-status-current-bg default
#set-window-option -g window-status-current-attr bright
# pane border
set-option -g pane-border-fg black #base02
set-option -g pane-active-border-fg brightgreen #base01
# message text
set-option -g message-bg black #base02
set-option -g message-fg brightred #orange
# pane number display
set-option -g display-panes-active-colour blue #blue
set-option -g display-panes-colour brightred #orange
# clock
set-window-option -g clock-mode-colour green #green
# bell
set-window-option -g window-status-bell-style fg=black,bg=red #base02, red
bind -n S-Left select-pane -L
bind -n S-Right select-pane -R
bind -n S-Up select-pane -U
bind -n S-Down select-pane -D
select-pane -U
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment