-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
70 lines (52 loc) · 1.92 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
# set default shell
set-option -g default-shell /bin/bash
# remap prefix from 'C-b' to 'C-a'
unbind C-b
set-option -g prefix C-Space
bind-key C-Space send-prefix
# set path when splitting
bind-key \ splitw -h
bind-key - splitw -v
# split panes using | and -
unbind '"'
unbind %
# fix vim colors
set -g default-terminal "xterm"
# reload config file (change file location to your the tmux.conf you want to use)
bind r source-file ~/.tmux.conf
# vim-like navigation
bind-key h select-pane -L
bind-key j select-pane -D
bind-key k select-pane -U
bind-key l select-pane -R
# enable mouse
set -g mouse on
# vi commands for copy-mod
setw -g mode-keys vi
unbind [
bind Escape copy-mode
unbind p
bind p paste-buffer
bind-key -Tcopy-mode-vi 'v' send -X begin-selection
bind-key -Tcopy-mode-vi 'y' send -X copy-selection
# repeat last shell command on right pane (if it happens to be a shell)
bind-key s select-pane -t 1 \; send-keys C-c Up C-m \; last-pane
#set -g default-terminal "screen-256color"
set -g status-justify centre
set-option -g status-position top
#set -g status-bg black
#set -g status-fg colour231
#
#set-window-option -g window-status-current-fg colour0
#set-window-option -g window-status-current-bg colour231
#set-window-option -g window-status-current-attr bright
set -g status-left-length 70
set -g status-left "#[fg=colour255] #h : #[fg=colour255]#(curl icanhazip.com) #[fg=colour255]#(ifconfig en0 | grep 'inet ' | awk '{print \"en0 \" $2}') #(ifconfig en1 | grep 'inet ' | awk '{print \"en1 \" $2}') #[fg=colour255]#(ifconfig tun0 | grep 'inet ' | awk '{print \"vpn \" $2}') "
set -g status-right-length 60
set -g status-right "#[fg=colour255] %d %b %Y #[fg=colour255]:: %l:%M %p :: #(date -u | awk '{print $4}') "
#setw -g window-style 'bg=colour255'
#setw -g window-active-style 'bg=colour231'
#
#setw -g pane-active-border-style 'fg=colour231,bg=colour231'
#setw -g pane-border-style 'fg=colour255,bg=colour255'
new-session -n $host