Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # remap prefix from 'C-b' to 'C-a'
- unbind C-b
- set-option -g prefix C-a
- bind-key C-a send-prefix
- # Don't rename windows automatically
- #set-option -g allow-rename off
- # reload config file (change file location to your the tmux.conf you want to use)
- bind r source-file ~/.tmux.conf
- # switch panes using Alt-arrow without prefix
- bind -n M-Left select-pane -L
- bind -n M-Right select-pane -R
- bind -n M-Up select-pane -U
- bind -n M-Down select-pane -D
- # split panes using | and -
- bind | split-window -h
- bind - split-window -v
- unbind '"'
- unbind %
- # Enable mouse mode (tmux 2.1 and above)
- set -g mouse on
- set -g default-terminal "screen-256color"
- # Copy to system clipboard
- #bind P paste-buffer
- #bind-key -T copy-mode-vi v send-keys -X begin-selection
- #bind-key -T copy-mode-vi y send-keys -X copy-selection
- #bind-key -T copy-mode-vi r send-keys -X rectangle-toggle
- #bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'xclip -in -selection clipboard'
- ######################
- ### DESIGN CHANGES ###
- ######################
- # Powerline
- set-option -g status on
- set-option -g status-interval 2
- set-option -g status-justify "centre"
- set-option -g status-left-length 60
- set-option -g status-right-length 90
- set-option -g status-left "#(~/misc/tmux-powerline/powerline.sh left)"
- set-option -g status-right "#(~/misc/tmux-powerline/powerline.sh right)"
- set-window-option -g window-status-current-format "#[fg=colour239, bg=colour27]⮀#[fg=colour255, bg=colour27] #I ⮁ #W #[fg=colour27, bg=colour239]⮀"
- set -g status-bg colour239
- set -g status-fg white
- # border colours
- set -g pane-border-style fg=colour26
- set -g pane-active-border-style fg=colour2
- set -g pane-active-border-style bg=default
- # TMUX Plugins (TPM)
- set -g @plugin 'tmux-plugins/tmux-yank'
- set -g @plugin 'tmux-plugins/tmux-resurrect'
- #set -g @plugin 'tmux-plugins/tmux-cpu'
- run-shell ~/.tmux/plugins/yank.tmux
- #run-shell ~/.tmux/plugins/cpu.tmux
- run -b '~/.tmux/plugins/tpm/tpm'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement