-
Notifications
You must be signed in to change notification settings - Fork 1
/
tmux.conf
106 lines (86 loc) · 3.49 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
# Key bindings
# Default prefix = Ctrl + b
# prefix + I - Update TMUX Plugin Manager
# tmux-ressurect
# prefix + Ctrl-s - Save session
# prefix + Ctrl-r - Restore session
# prefix + U
# prefix + Ctrl-u
#
# prefix + TAB - Display path
# prefix + t - Display time
# orefix + i - Display current selected pane info
# prefix + f - Find window
# prefix + l - Last windows
# preifx + z - Maximize pane
# prefix + ! - Create new window with current pane
# prefix + c - Create new window
# prefix + ? - Display help
# tmux-copycat
# prefix + ctrl-f - simple file search
# prefix + ctrl-g - jumping over git status files (best used after git status command)
# prefix + alt-h - jumping over SHA-1 hashes (best used after git log command)
# prefix + ctrl-u - url search (http, ftp and git urls)
# prefix + ctrl-d - number search (mnemonic d, as digit)
# prefix + alt-i - ip address search
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
#set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @plugin 'tmux-plugins/tmux-battery'
set -g @plugin 'tmux-plugins/tmux-sidebar'
set -g @plugin 'tmux-plugins/tmux-online-status'
set -g @plugin 'tmux-plugins/tmux-logging'
set -g @plugin 'tmux-plugins/tmux-prefix-highlight'
set -g @plugin 'tmux-plugins/tmux-copycat'
# 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-Continuum
# set -g @continuum-restore 'on'
# Enable Mouse Control (TMUX 2.1 and up)
set -g mouse on
# Enable Mouse Control (clickable windows, panes, resizable panes)
# set -g mouse-select-window on
# set -g mouse-select-pane on
# set -g mouse-resize-pane on
# TMUX Color Terminal (
set -g default-terminal "xterm-256color"
# Restore ViM Sessions with TMUX-Continuum (Atrapalha se você gosta sempre de "começar do zero")
# set -g @resurrect-strategy-vim 'session'
# Restoring bash history. Due to technical limitations, this only works for panes which have no program running in foreground when saving.
#set -g @resurrect-save-bash-history 'on'
# Activate Vi(M) like cursor movement
set-window-option -g mode-keys vi
# tmux-battery configs
set -g @batt_discharging_icon "Rage--"
set -g @batt_charging_icon "Rage++"
set -g @batt_charged_icon "*-*"
# address vim mode switching delay (http://superuser.com/a/252717/65504)
# set -s escape-time 0
# increase scrollback buffer size
set -g history-limit 50000
# tmux messages are displayed for 4 seconds
set -g display-time 4000
# refresh 'status-left' and 'status-right' more often
set -g status-interval 1
# focus events enabled for terminals that support them
set -g focus-events on
setw -g monitor-activity on
set -g visual-activity on
# Start windows and panes at 1, not 0
set -g base-index 1
setw -g pane-base-index 1
# source .tmux.conf as suggested in `man tmux`
bind r source-file /home/godoy/.tmux.conf
# Sincroniza o terminal em todos as panes
bind F2 setw synchronize-panes
# set -g status-right ' #{battery_icon} #{battery_percentage} #{battery_remain} | %H:%M %d/%h %a '
set -g status-right '#{prefix_highlight} | #{battery_icon} #{battery_percentage} | %H:%M %d/%h %A '
set -g automatic-rename on
set -g automatic-rename-format '#{b:pane_current_path}'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'