Skip to content

Instantly share code, notes, and snippets.

@koleksiuk
Created June 13, 2016 07:26
Show Gist options
  • Save koleksiuk/93b110fba4adac402365f92a06851742 to your computer and use it in GitHub Desktop.
Save koleksiuk/93b110fba4adac402365f92a06851742 to your computer and use it in GitHub Desktop.
set-option -g default-shell $SHELL
# copy and paster
# set-option -g default-command "reattach-to-user-namespace -l zsh"
# set-option -g default-command "reattach-to-user-namespace mvim"
# look good
set -g default-terminal "screen-256color"
# act like GNU screen
unbind C-b
set -g prefix C-a
# Copy-paste integration
set-option -g default-command "reattach-to-user-namespace -l fish"
# Use vim keybindings in copy mode
setw -g mode-keys vi
# Setup 'v' to begin selection as in Vim
bind-key -t vi-copy v begin-selection
bind-key -t vi-copy y copy-pipe "reattach-to-user-namespace pbcopy"
# Update default binding of `Enter` to also use copy-pipe
unbind -t vi-copy Enter
bind-key -t vi-copy Enter copy-pipe "reattach-to-user-namespace pbcopy"
# Bind ']' to use pbpaste
bind ] run "reattach-to-user-namespace pbpaste | tmux load-buffer - && tmux paste-buffer"
set-option -g status on
set-option -g status-interval 1
# set-option -g status-utf8 on
set-option -g status-justify "left"
set-option -g status-left-length 60
set-option -g status-right-length 90
set-option -g status-left "#(~/Dev/tmux/tmux-powerline/powerline.sh left)"
set-option -g status-right "#(~/Dev/tmux/tmux-powerline/powerline.sh right)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment