-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.tmux.conf
More file actions
64 lines (58 loc) · 2.53 KB
/
.tmux.conf
File metadata and controls
64 lines (58 loc) · 2.53 KB
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
#prefix is ctl-a
unbind C-b
set -g prefix C-a
bind C-a send-prefix
bind-key -T prefix Space next-window
bind-key -T prefix Enter switch-client -n
#options
set -g default-command "${SHELL}"
set -g clock-mode-style 12
bind \ split-window -h -c '#{pane_current_path}'
bind - split-window -v -c '#{pane_current_path}'
set-window-option -g mode-keys vi
bind -Tcopy-mode-vi 'v' send -X begin-selection # Begin selection in copy mode.
bind -Tcopy-mode-vi 'C-v' send -X rectangle-toggle # Begin selection in copy mode.
bind -Tcopy-mode-vi 'y' send -X copy-selection # Yank selection in copy mode.
bind c neww -c '#{pane_current_path}'
#set -g @sidebar-tree-command 'tree -L 2'
set -g @offline_icon "offline!"
set -g @online_icon "online"
set-option -g status-position top
#set -g status-position top
#status bar
#set -g status-right '#{online_status} | #(/Users/madmin/Documents/.batt.sh) | %a %d %b %l:% %p #{prefix_highlight}'
source /usr/local/lib/python2.7/site-packages/powerline/bindings/tmux/powerline.conf
# List of plugins
# Supports `github_username/repo` or full git repo URLs
set -g @tpm_plugins ' \
tmux-plugins/tpm \
tmux-plugins/tmux-pain-control \
tmux-plugins/tmux-sensible \
tmux-plugins/tmux-yank \
tmux-plugins/tmux-open \
tmux-plugins/tmux-online-status \
tmux-plugins/tmux-sessionist \
tmux-plugins/tmux-resurrect \
tmux-plugins/tmux-prefix-highlight \
'
# Other examples:
# github_username/plugin_name \
# git@github.com/user/plugin \
# git@bitbucket.com/user/plugin \
# smart pane switching with awareness of vim splits
bind -n C-h run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-h) || tmux select-pane -L"
bind -n C-j run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-j) || tmux select-pane -D"
bind -n C-k run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-k) || tmux select-pane -U"
bind -n C-l run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-l) || tmux select-pane -R"
bind -n C-\ run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys 'C-\\') || tmux select-pane -l"
# Initializes TMUX plugin manager.
# Keep this line at the very bottom of tmux.conf.
run-shell '~/.tmux/plugins/tpm/tpm'
#unbind-key j
#bind-key j select-pane -D
#unbind-key k
#bind-key k select-pane -U
#unbind-key h
#bind-key h select-pane -L
#unbind-key l
#bind-key l select-pane -R