Skip to content

Instantly share code, notes, and snippets.

@ak1t0
Created April 26, 2019 03:33
Show Gist options
  • Save ak1t0/d26cea1474492e4b1461b04163205486 to your computer and use it in GitHub Desktop.
Save ak1t0/d26cea1474492e4b1461b04163205486 to your computer and use it in GitHub Desktop.
fuck Mac fuck tmux config
# set prefix key C-X
set-option -g prefix C-g
unbind C-b
# UI
set-option -g status-position top
set-option -g default-terminal screen-256color
set -sg escape-time 1
## Powerline
source "/usr/local/lib/python2.7/site-packages/powerline/bindings/tmux/powerline.conf"
# Mouse
set -g mouse on
unbind -T copy-mode MouseDragEnd1Pane
# Key
set-window-option -g mode-keys emacs
bind -n C-t next-window
bind -n C-u previous-window
bind t new-window
bind n new-window -c "#{pane_current_path}"
bind q kill-window
bind j split-window -v -c "#{pane_current_path}"
bind k split-window -h -c "#{pane_current_path}"
bind l copy-mode
bind r source-file ~/.tmux.conf \; display "tmux.conf is reloaded :)"
bind-key -T copy-mode M-w send-keys -X copy-pipe-and-cancel "pbcopy"
bind -n C-y run "pbpaste | tmux load-buffer - && tmux paste-buffer"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment