forked from paulirish/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 5
/
.tmux.conf
65 lines (56 loc) · 1.9 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
#=== Display Preferences
#Set color pallete to 256colors
set -g default-terminal "screen-256color"
# STATUS BAR
set -g status-bg black
set -g status-fg white
set -g visual-activity on
set -g set-titles on
set -g set-titles-string "#I:#W"
#
# #Status bar colors and highlight
set-option -g status-fg black
set-option -g status-bg colour6
#
# # Enable highligth of window status on activity
setw -g automatic-rename
setw -g monitor-activity on
setw -g visual-activity off
#
# #Customize status infromation and colors
set -g status-justify centre
set -g status-interval 1
set -g status-right "#[fg=colour6]#[bg=colour190]⮀ #[bg=colour190]#[fg=black]#H | %a %d-%b-%y | %r "
set -g status-right "#[fg=colour6]#[bg=colour190]⮀ #[bg=colour190]#[fg=black]%a %d-%b|%r|#h "
set -g status-left "#[bg=colour190]#[fg=black][#S]#D,#P#[bg=colour190]#[fg=colour6] ⮂"
set-window-option -g xterm-keys on
#
# #Turn on vi mode keyboard mapping
set-window-option -g mode-keys vi
# #=== Keybindings
# # Binding for reloading tmux config file
# bind r source-file ~/.tmux.conf\; display-message "Config reloaded..."
#
# #TODO checkout https://github.com/seebi/tmux-colors-solarized
bind '"' split-window -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
bind c new-window -c "#{pane_current_path}"
# remap prefix to Control + a
set -g prefix C-a
# # bind 'C-a C-a' to type 'C-a'
bind C-a send-prefix
unbind C-b
# @see https://gist.github.com/andreyvit/2921703
# window resize
bind-key -r j resize-pane -D 5
bind-key -r k resize-pane -U 5
bind-key -r h resize-pane -L 5
bind-key -r l resize-pane -R 5
# set-option -g default-command "reattach-to-user-namespace -l bash"
# bind-key -t vi-copy y copy-selection
#set-option -g default-command "reattach-to-user-namespace -l ${SHELL}"
set-option -g history-limit 10000
# nvim stuff
set-option -sg escape-time 10
set-option -g focus-events on
set-option -ga terminal-overrides ',XXX:Tc'