This repository has been archived on 2021-04-06. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles/home/.tmux.conf

42 lines
825 B
Plaintext

# screen behaviour
unbind C-b
set -g prefix C-a
unbind C-a
bind C-a send-prefix
# config reload
unbind r
bind r source-file ~/.tmux.conf
# more ergonomic splitting
unbind |
bind | split-window -h
unbind -
bind - split-window -v
# more ergnomic window numbers
set -g base-index 1
setw -g pane-base-index 1
# vim bindings in copy mode
# HOWTO: PREFIX+[, v, select text, y, PREFIX+]
bind-key -T copy-mode-vi v send-keys -X begin-selection
bind-key -T copy-mode-vi y send-keys -X copy-selection-and-cancel
# enable mouse
set -g mouse on
# powerline
run-shell "powerline-daemon -q || true"
source "/usr/share/powerline/bindings/tmux/powerline.conf"
# plugins
set -g @plugin 'tmux-plugins/tpm'
## solarized colors
set -g @plugin 'seebi/tmux-colors-solarized'
set -g @colors-solarized 'dark'
run '~/.tmux/plugins/tpm/tpm'