diff options
author | Shubham Saini <pryr@pryr.xyz> | 2021-05-12 12:46:35 +0000 |
---|---|---|
committer | Shubham Saini <pryr@pryr.xyz> | 2021-05-12 12:46:35 +0000 |
commit | 0b2a271f0bf57925b2b4b04fb3f35c929c3df8ba (patch) | |
tree | 432f570a1f7542ac76bebbd4af5a33f2a6933b9c /tmux | |
parent | d25bb738e7c5c636359af852eba946006a2eafff (diff) |
updated tmux config
Diffstat (limited to 'tmux')
-rwxr-xr-x | tmux/.tmux.conf | 79 |
1 files changed, 38 insertions, 41 deletions
diff --git a/tmux/.tmux.conf b/tmux/.tmux.conf index f2c781a..175df16 100755 --- a/tmux/.tmux.conf +++ b/tmux/.tmux.conf | |||
@@ -1,43 +1,40 @@ | |||
1 | set -g prefix C-a | 1 | set -g default-terminal "tmux-256color" |
2 | unbind-key C-b | ||
3 | bind-key C-a send-prefix | ||
4 | |||
5 | # start with window 1 (instead of 0) | ||
6 | set -g base-index 1 | 2 | set -g base-index 1 |
7 | 3 | set -s escape-time 0 | |
8 | # start with pane 1 | ||
9 | set -g pane-base-index 1 | ||
10 | |||
11 | # history | ||
12 | set -g history-limit 4096 | ||
13 | |||
14 | # mouse | ||
15 | set -g mouse on | 4 | set -g mouse on |
16 | 5 | set-option -g prefix C-a | |
17 | # allow terminal scrolling | 6 | unbind-key C-b |
18 | set-option -g terminal-overrides 'xterm*:smcup@:rmcup@' | 7 | bind-key C-a send-prefix |
19 | 8 | bind h select-pane -L | |
20 | # resizing | 9 | bind j select-pane -D |
21 | setw -g aggressive-resize on | 10 | bind k select-pane -U |
22 | 11 | bind l select-pane -R | |
23 | # window status | 12 | bind r source-file ~/.tmux.conf |
24 | set-option -g status-position bottom | 13 | # Enable vi keys. |
25 | set -g status-bg default | 14 | setw -g mode-keys vi |
26 | 15 | ||
27 | # info on right (no session display) | 16 | # Escape turns on copy mode |
28 | set-option -g status-right "" | 17 | bind Escape copy-mode |
29 | set-option -g status-left "" | 18 | |
30 | 19 | # v in copy mode starts making selection | |
31 | # toggle status bar visibility | 20 | bind-key -T copy-mode v send -X begin-selection |
32 | bind t set status | 21 | bind-key -T copy-mode y send -X copy-selection |
33 | 22 | ||
34 | # navigate throught windows | 23 | # make Prefix p paste the buffer. |
35 | bind-key -n S-Left previous-window | 24 | unbind p |
36 | bind-key -n S-Right next-window | 25 | bind p paste-buffer |
37 | 26 | ||
38 | # colors | 27 | set-option -g status-position top |
39 | setw -g window-status-format "#[fg=colour8]#W " | 28 | set -g pane-border-style fg=colour15 |
40 | setw -g window-status-current-format "#[fg=colour6]#W " | 29 | set -g pane-active-border-style fg=colour8 |
41 | # set -g pane-border-fg colour0 | 30 | |
42 | # set -g pane-active-border-fg colour0 | 31 | set -g status-justify right |
43 | 32 | set -g status-right "" | |
33 | set -g status-style "bg=colour0" | ||
34 | set -ag status-style "fg=colour7" | ||
35 | |||
36 | set -g window-status-current-format "#[fg=colour15] #W" | ||
37 | set -g window-status-format "#[fg=colour8] #W" | ||
38 | |||
39 | set -g status-left-length 100 | ||
40 | set -ag status-left "#[fg=colour8]bat #[fg=colour15]#(~/.bin/bat) " | ||