-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
61 lines (49 loc) · 1.65 KB
/
.tmux.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
set -g default-shell /opt/homebrew/bin/fish
# NOTE: color workround
# https://gist.github.com/ssh352/785395faad3163b2e0de32649f7ed45c
set -g default-terminal 'screen-256color'
set -ga terminal-overrides ',*256col*:RGB'
set -g mouse on
setw -g mode-keys vi
# Change prefix from 'Ctrl+b' to 'Ctrl+q'
unbind C-b
set -g prefix C-q
bind-key C-q send-prefix
# pane move
bind-key -r h select-pane -L
bind-key -r j select-pane -D
bind-key -r k select-pane -U
bind-key -r l select-pane -R
# tmux reload
unbind r
bind r source-file ~/.tmux.conf
# Set new panes to open in current directory
# FIXME: this doese not work: https://github.com/fish-shell/fish-shell/issues/5699
bind-key c new-window -c "$PWD"
unbind '"'
bind-key - split-window -v -c "$PWD"
unbind %
bind-key | split-window -h -c "$PWD"
# copy
bind-key -T copy-mode-vi v send -X begin-selection
# tmux plugin
set -g @plugin 'tmux-plugins/tpm'
# set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'dracula/tmux'
set -g @plugin 'tmux-plugins/tmux-yank'
# set -g @plugin 'jimeh/tmux-themepack'
# dracura
set -g @dracula-plugins "battery cpu-usage ram-usage time"
# set -g @dracula-battery-colors "dark_purple white"
# set -g @dracula-cpu-usage-colors "dark_purple white"
# set -g @dracula-ram-usage-colors "dark_purple white"
set -g @dracula-time-colors "light_purple dark_gray"
set -g @dracula-show-powerline true
set -g @dracula-show-left-icon session
set -g @dracula-day-month false
set -g @dracula-show-timezone false
# set -g @themepack 'powerline/default/cyan' # use this theme for tmux
# tmux-yank
# set -g default-command "reattach-to-user-namespace -l $SHELL"
set -g @shell_mode 'vi'
run '~/.tmux/plugins/tpm/tpm'