-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
42 lines (35 loc) · 1.63 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
set-option -g default-shell /bin/zsh # set zsh as the shell
bind - split-window -v -c '#{pane_current_path}' # use - to split vertical
bind | split-window -h -c '#{pane_current_path}' # use | to split horizontal
bind c new-window -c '#{pane_current_path}' # new window uses the same directory
bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'pbcopy' # Copy with system clipboard
set -g base-index 1 # first window is number 1, not number 0
set -g mouse on # enable mouse
# if-shell 'test "$(uname -s)" = Darwin' 'set-option -g default-command "exec reattach-to-user-namespace -l zsh"' # fix pbcopy/pbpaste - you have to install this first
# remap prefix to Control + a
set -g prefix C-a
set-option -g renumber-windows on
# bind 'C-a C-a' to type 'C-a'
bind C-a send-prefix
unbind C-b
setw -g mode-keys vi # enable vim commands
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'robhurring/tmux-spotify'
set -g status-right-length 150
set -g status-right "#{spotify_status} #{spotify_artist} - #{spotify_track}"
set -g status-style bg=colour39,fg=colour238
set -g pane-border-style fg=colour8
set -g pane-active-border-style fg=colour39,bg=default
# Other examples:
# set -g @plugin 'github_username/plugin_name'
# set -g @plugin 'git@github.com/user/plugin'
# set -g @plugin 'git@bitbucket.com/user/plugin'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
set-option -g history-limit 10000
run '~/.tmux/plugins/tpm/tpm'