This repository has been archived by the owner on May 27, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy path.tmux.conf
130 lines (104 loc) · 3.33 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
# GENERAL
###############################################################
set -g default-terminal "screen-256color"
set -ga terminal-overrides ",*:Tc"
set -ga terminal-overrides '*:Ss=\E[%p1%d q:Se=\E[ q'
set -g escape-time 0
set -g focus-events on
set -g history-limit 100000
set -g history-file ~/.tmux/log/tmuxhistory
set -g monitor-activity off
set -g visual-activity off
setw -g monitor-bell off
set -g bell-action none
set -g set-clipboard on
setw -g mode-keys vi
setw -g wrap-search off
###############################################################
# TMUX INTERFACE
###############################################################
# STATUS
set -g status-position bottom
set -g status on
set -g status-interval 5
set -g status-style "fg=brightwhite, bg=black"
## Left
set -g status-left-length 0
set -g status-left ""
# set -g status-left "#[fg=black,bg=blue,] #[fg=black,bg=white,] #(whoami) "
## center
set -g window-status-format "#[fg=black,bg=blue] #W "
set -g window-status-current-format "#[fg=black,bg=magenta] #W "
set -g window-status-separator ""
set -g status-justify centre
## Right
set -g status-right-length 0
set -g status-right ""
#set -g status-right "#{prefix_highlight} #[fg=black,bg=blue,] #[fg=black,bg=white] #(lsb_release -d | cut -f 2) "
# PANEL
set -g pane-border-status off
set -g pane-border-format "#[fg=black,bg=blue] #{pane_current_command} "
set -g pane-base-index 1
set -g main-pane-width 1
set -g main-pane-height 1
set -g other-pane-width 1
set -g other-pane-height 1
set -g pane-active-border-style bg='default',fg='magenta'
set -g pane-border-style fg='blue'
# WINDOW
set -g base-index 1
set -g renumber-windows on
setw -g automatic-rename on
setw -g window-style "fg=white bg=black"
setw -g window-active-style "fg=white bg=black"
# OTHER'S
set -g set-titles off
set -g set-titles-string "tmux"
setw -g allow-rename on
setw -g mode-style "fg=black, bg=magenta"
## Clock mode
set -g clock-mode-colour white
set -g clock-mode-style 12
## Message
set -g message-style "fg=black, bg=magenta"
###############################################################
# KEY BINDING
###############################################################
# remap dari ctrl+b menjadi ctrl+t
unbind C-b
set-option -g prefix C-t
bind-key C-t send-prefix
# split
bind | split-window -h
bind - split-window -v
# reload tmux
bind r source-file ~/.tmux.conf
## Window
bind-key -n M-Left previous-window
bind-key -n M-Right next-window
# switch pane menggunakan alt+panah
bind -n S-Left select-pane -L
bind -n S-right select-pane -R
bind -n S-Up select-pane -U
bind -n S-Down select-pane -D
# MOUSE
set -g mouse on
###############################################################
# Tmux Plugin Manager
###############################################################
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @plugin 'tmux-plugins/tmux-prefix-highlight'
set -g @plugin 'tmux-plugins/tmux-urlview'
# Plugin Configuration
# tmux-resurrect
set -g @resurrect-processes ':all:'
# tmux-yank
set -g @shell_mode 'vi'
set -g @yank_with_mouse on
set -g @yank_selection_mouse 'clipboard'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run -b '~/.tmux/plugins/tpm/tpm'
###############################################################