-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
118 lines (97 loc) · 2.78 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
# command prefix (like screen)
set -g prefix C-a
unbind C-b
bind C-a send-prefix # Passthrough Crtl+a
# Reload Tmux Conf
bind r source-file ~/.tmux.conf \; display "Configujation Reloaded"
setw -g aggressive-resize on
setw -g mode-mouse on
# basic settings
#set-window-option -g mode-keys vi # vi key
#set-option -g status-keys vi
set-window-option -g utf8 on # utf8 support
#set-window-option -g mode-mouse off # disable mouse
set -sg escape-time 0
set -g default-terminal "xterm-256color"
# Base Settings
set -g base-index 1
setw -g pane-base-index 1
#
## copy mode to escape key
#unbind [
#bind Escape copy-mode
#
## splitting and cycling
#set-option -g mouse-select-pane off
#unbind %
#bind + split-window -h # horizontal split
#unbind '"'
#bind _ split-window -v # vertical split
#bind C-j previous-window
#bind C-k next-window
# Splitting Panes
bind | split-window -h
bind - split-window -v
# Navigating Panes
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# Resize Panes
bind H resize-pane -L 5
bind J resize-pane -D 5
bind K resize-pane -U 5
bind L resize-pane -R 5
#
## window title
#set-option -g set-titles on
#set-option -g set-titles-string '#S:#I.#P #W' # window number,program name,active (or not)
#set-window-option -g automatic-rename on # auto name
#
## messages
##set-window-option -g mode-bg magenta
##set-window-option -g mode-fg black
##set-option -g message-bg magenta
##set-option -g message-fg black
#
## No visual activity
##set -g visual-activity off
##set -g visual-bell off
#
##next tab
#bind-key -n C-right next
#
##previous tab
#bind-key -n C-left prev
#
## status bar
set-option -g status-utf8 on
#set-option -g status-justify right
#set-option -g status-bg black
#set-option -g status-fg cyan
#set-option -g status-interval 5
#set-option -g status-left-length 30
set-option -g status-left '#[bg=colour236]#[fg=white,bold] #S #[default]'
#set-option -g status-left " #S"
set-option -g status-right "#(date)"
#set-option -g status-right '#[fg=cyan]»» #[fg=blue,bold]###S #[fg=magenta]%R %m-%d#(uptime | cut -d "," -f2-)#[default]'
setw -g window-status-bg default
setw -g window-status-fg default
setw -g window-status-format " [#I#F #W] "
setw -g window-status-current-bg black
setw -g window-status-current-fg white
setw -g window-status-current-format " [#I#F] #W "
set-option -g visual-activity off
# mouse
# set -g mouse-resize-pane on
# set -g mouse-select-pane on
# set -g mouse-select-window on
# setw -g mode-mouse on
#set-window-option -g monitor-activity on
#set-window-option -g window-status-current-fg white
#
## clock
#set-window-option -g clock-mode-colour cyan
#set-window-option -g clock-mode-style 24
# Wrapper for reattaching to user space for clipbpard
set-option -g default-command "reattach-to-user-namespace -l zsh"