-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaxsuul.tmux.conf
113 lines (86 loc) · 3.1 KB
/
axsuul.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
107
108
109
110
111
112
113
# Remap prefix to Control + a
set-option -g prefix C-a
bind-key C-a send-prefix
# Be able to go to beginning of line
bind a send-prefix
# Force a reload of the config file
unbind r
bind r source-file ~/.tmux.conf \; display "Reloaded ~/.tmux.conf"
# Set the default shell to fish
#set -g default-shell /usr/local/bin/fish
# Make a smaller delay so we can perform commands after switching windows
# for example
set -sg escape-time 0
set -sg repeat-time 600
# Mouse
#set -g mode-mouse on
#set -g mouse-resize-pane on
#setw -g mouse-select-window on
#setw -g mouse-select-pane on
# Less stretching to get to the first item.
set -g base-index 1
setw -g pane-base-index 1
# Quick pane cycling
unbind ^A
bind ^A select-pane -t :.+
# Use Alt-vim keys without prefix key to switch panes
bind -n M-h select-pane -L
bind -n M-j select-pane -D
bind -n M-k select-pane -U
bind -n M-l select-pane -R
# Use Alt-arrow keys without prefix key to switch panes
bind -n M-Left select-pane -L
bind -n M-Right select-pane -R
bind -n M-Up select-pane -U
bind -n M-Down select-pane -D
# Shift arrow to switch windows
bind -n S-Left previous-window
bind -n S-Right next-window
# Use Vi mode
setw -g mode-keys vi
set -g status-keys vi
# More straight forward key bindings for splitting
unbind %
bind | split-window -h
unbind '"'
bind _ split-window -v
# Terminal emulator window title
set -g set-titles on
set -g set-titles-string '#S:#I.#P #W'
# UTF8
#set -g status-utf8 on
# Terminal junks!
set -g default-terminal "screen-256color"
# Bad Wolf
set -g status-fg white
set -g status-bg colour234
set -g window-status-activity-attr bold
set -g pane-border-fg colour245
set -g pane-active-border-fg colour39
set -g message-fg colour16
set -g message-bg colour221
set -g message-attr bold
# Custom status bar
# Powerline symbols: ⮂ ⮃ ⮀ ⮁ ⭤
set -g status-left-length 32
set -g status-right-length 150
set -g status-interval 5
set -g status-left '#[fg=colour16,bg=colour254,bold] #S #[fg=colour254,bg=colour238,nobold]⮀#[fg=colour15,bg=colour238,bold] #I.#P #[fg=colour238,bg=colour234,nobold]⮀'
set -g status-right '#[fg=colour245]⮃ #(date +"%a") %d %b %R #[fg=colour237]⮂#[fg=colour247,bg=colour237]#(uptime | cut -d "," -f 3- | cut -d ":" -f2) ⮂#[fg=colour16,bg=colour247,bold] #h '
set -g window-status-format "#[fg=white,bg=colour234] #I #W "
set -g window-status-current-format "#[fg=colour234,bg=colour39]⮀#[fg=colour16,bg=colour39,noreverse,bold] #I ⮁ #W #[fg=colour39,bg=colour234,nobold]⮀"
# Activity
setw -g monitor-activity on
set -g visual-activity on
# Autorename sanely.
setw -g automatic-rename on
# Better name management
bind c new-window
bind , command-prompt "rename-window '%%'"
# Don't prompt for killing panes and windows
bind-key x kill-pane
bind-key & kill-window
# Scrollback lines
set-option -g history-limit 3000
# Workaround for macOS pasteboard in tmux sessions
set-option -g default-command 'command -v reattach-to-user-namespace >/dev/null && exec reattach-to-user-namespace -l "$SHELL" || exec "$SHELL"'