forked from mxaddict/dotfiles_archive_001
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
79 lines (60 loc) · 2.34 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
######### THEME ##########
# set -g status-style fg=white,bg=brightblack
# setw -g clock-mode-colour cyan
# set -g mode-style bg=brightcyan,fg=black
# set -g message-style bg=brightblack,fg=cyan
# set -g message-command-style bg=brightblack,fg=cyan
# set -g status-left '#{?pane_synchronized, ¤ ,}#{?window_zoomed_flag, ↕ ,}[#S-#{window_active_clients}]'
# set -g status-right '#H'
# path="#(if [[ $HOME == #{pane_current_path} ]]; then echo \"~\" ; else echo #{b:pane_current_path}; fi)"
# set -g pane-border-style fg=brightblack,bg=black
# set -g pane-active-border-style fg=blue,bg=black
# set-window-option -g window-active-style bg=terminal
# set-window-option -g window-style bg=black
# set-window-option -g window-status-style bg=default,fg=default
# set-window-option -g window-status-current-style bg=default,fg=cyan
# set-window-option -g window-status-activity-style bg=default,fg=yellow
# set-window-option -g window-status-separator ""
# set-window-option -g window-status-current-format " $path "
# set-window-option -g window-status-format " $path "
# Set window titles
set -g automatic-rename on
set -g set-titles on
set -g automatic-rename-format '#{b:pane_current_path}'
# Start windows number @1 Instead of @0
set -g base-index 1
set -g pane-base-index 1
# Renumber windows when closing
set -g renumber-windows on
# Make sure we have the correct $TERM value inside tmux
set -g default-terminal "screen-256color"
set -g status-keys vi
set -g history-limit 20000
setw -g mode-keys vi
setw -g monitor-activity on
# Make sure we use the correct shell
set-option -g default-shell $SHELL
# Fix the tmux working DIR issue with newer version
bind '"' split-window -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
bind c new-window -c "#{pane_current_path}"
# Because resizing is a pain
set -g mouse on
bind -n M-Left resize-pane -L 10
bind -n M-Right resize-pane -R 10
bind -n M-Up resize-pane -U 10
bind -n M-Down resize-pane -D 10
# Use Alt-vim keys without prefix to switch panes
bind -n M-h select-pane -L
bind -n M-j select-pane -D
bind -n M-k select-pane -U
bind -n M-l select-pane -R
# Shift arrow to switch windows
bind -n S-Left previous-window
bind -n S-Right next-window
# Remove escape key press delay
set -g escape-time 0
# Reload tmux config
bind r source-file ~/.tmux.conf
# TmuxlineSnapshot!
source-file ~/.tmuxline.conf