-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtmux.conf
executable file
·50 lines (41 loc) · 1.53 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
set -g prefix C-a
unbind C-b
bind C-a send-prefix
set -g default-command "${SHELL}"
set -g history-limit 500000
set -g status-right "#{s/.facebook.com//:host} • %Y-%m-%d %H:%M"
set -s default-terminal "screen-256color"
set -s escape-time 0
set -g status-bg black
set -g status-fg yellow
setw -g window-status-format "#I #(cd #{pane_current_path};git rev-parse --abbrev-ref HEAD)"
setw -g window-status-current-format "#I #(cd #{pane_current_path};git rev-parse --abbrev-ref HEAD)"
setw -g window-status-current-style "bg=green fg=black"
setw -g window-status-separator "#[bold]#[fg=red] | "
set -g status-left ""
# set -g status-right "#(/bin/date +'%H:%M %d.%m.%Y')"
set -g status-keys vi
setw -g mode-keys vi
#set -g set-titles on
#set -g set-titles-string "#(/bin/hostname)"
bind -n S-Left prev
bind -n S-Right next
# Set Copy-Mode settings
bind [ copy-mode
#bind -t vi-copy v begin-selection
#bind -t vi-copy y copy-selection
#bind -t vi-copy V rectangle-toggle
bind ] paste-buffer
# bind a reload key
bind R source-file ~/.tmux.conf \; display-message "Configuration reloaded"
# kill pane without confirm
bind x kill-pane
bind X kill-pane -a # kill all except the active one
# make ctrl+left and ctrl+right work properly
set-window-option -g xterm-keys on
# open windows and panes in the same dir
bind '"' split-window -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
bind c new-window -c "#{pane_current_path}"
bind-key -n C-S-Left { swap-window -t -1; previous-window }
bind-key -n C-S-Right { swap-window -t +1; next-window }