|
4 | 4 | # ██║ ██║╚██╔╝██║██║ ██║ ██╔██╗ |
5 | 5 | # ██║ ██║ ╚═╝ ██║╚██████╔╝██╔╝ ██╗ |
6 | 6 | # ╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝ |
| 7 | +set -g default-terminal "xterm-256color" # Set the default terminal for new window created in this session - the default value of the TERM environment variable. |
| 8 | +set -g escape-time 300 # Set the time in milliseconds for which tmux waits after an escape is input to determine if it is part of a function or meta key sequences. |
| 9 | +set -g editor "/usr/bin/nvim" # Set the command used when tmux runs an editor. |
| 10 | +set -g exit-empty on # If enabled (the default), the server will exit when there are no active sessions |
| 11 | +set -g exit-unattached off # If enabled, the server will exit when there are no attached clients. |
| 12 | +set -g extended-keys on # When on or always, the escape sequence to enable extended keys is sent to the terminal, if tmux knows that it is supported. tmux always recognises extended keys itself. If this option is on, tmux will only forward ex‐ tended keys to applications when they request them; if always, tmux will always forward the keys. |
| 13 | +# set -g focus-events on # When enabled, focus events are requested from the terminal if supported and passed through to applications running in tmux. |
| 14 | +# set -g history-file filepath # If not empty, a file to which tmux will write command prompt history on exit and load it from on start. |
| 15 | +# set -g message-limit 200 # Set the number of error or information messages to save in the message log for each client. |
| 16 | +set -g history-limit 5000 |
7 | 17 | set -g mouse on # Supports xterm(1) mouse sequences. |
8 | 18 | set -g default-shell /bin/zsh # Specify the default shell. |
9 | 19 | set -g base-index 1 # Set the base index from which an unused index should be searched when a new window is created. |
10 | | -set -g default-terminal "xterm-256color" # Set the default terminal for new window created in this session - the default value of the TERM environment variable. |
11 | 20 | set -ga terminal-overrides ",xterm-256color*:Tc" # This fix weird color in tmux dont REMOVE this |
12 | | -set -g escape-time 300 # Set the time in milliseconds for which tmux waits after an escape is input to determine if it is part of a function or meta key sequences. |
13 | 21 | set -g repeat-time 599 # Allow multiple commands to be entered without pressing the prefix-key again in the specified time mulliseconds (the default is 500). |
14 | 22 | set -g renumber-windows on # If on, when a window is closed in a session, automatically renumber the other windows in numerical order. |
15 | 23 | set -g set-titles on # Attempt to set the client terminal title usign the `tsl` and `fsl` terminfo(5) entries if they exist. |
@@ -40,15 +48,18 @@ setw -g window-active-style bg=#000000 # Set the pane style when it is acti |
40 | 48 | setw -g window-status-format "#[fg=#000000,bg=#030303]#[fg=#b2b2b2,bg=#030303]#I#[fg=#d0d0d0,bg=#030303] #W#{?window_flags,#{window_flags}, }#[fg=#030303,bg=#000000]" # Set the format in which the window is displayed in the status line window list. |
41 | 49 | setw -g window-status-current-format "#[fg=#000000,bg=#030303]#[fg=#b2b2b2,bg=#030303]#I#[fg=#d0d0d0,bg=#030303] #W#{?window_flags,#{window_flags}, }#[fg=#030303,bg=#000000]" # Set status line style for the currently active window. |
42 | 50 |
|
43 | | -set -g prefix2 C-Space # Set a secondary key accepted as a prefix key: Control + space |
44 | | -bind-key k select-pane -U # Set binding-key select-pane up: prefix-key + k |
45 | | -bind-key j select-pane -D # Set binding-key select-pane down: prefix-key + j |
46 | | -bind-key h select-pane -L # Set binding-key select-pane left: prefix-key + h |
47 | | -bind-key l select-pane -R # Set binding-key select-pane right: prefix-key + l |
48 | | -bind-key , split-window -v # Set binding-key split-window vertically: prefix-key + , |
49 | | -bind-key . split-window -h # Set binding-key split-window horizontally: prefix-key + . |
50 | | -bind-key -r K resize-pane -U 5 # Set binding-key resize-pane to up 5%: prefix-key + K |
51 | | -bind-key -r J resize-pane -D 5 # Set binding-key resize-pane to down 5%: prefix-key + J |
52 | | -bind-key -r H resize-pane -L 5 # Set binding-key resize-pane to left 5%: prefix-key + H |
53 | | -bind-key -r L resize-pane -R 5 # Set binding-key resize-pane to right 5%: prefix-key + L |
54 | | -bind-key r source-file /etc/tmux.conf \; display-message "Reloaded!" # Set binding-key reload tmux config file: prefix-key + r |
| 51 | +unbind C-Space # Remove bind-key of Control+Space |
| 52 | +set -g prefix C-Space # Set a secondary key accepted as a prefix key: Control + space |
| 53 | +bind-key C-Space send-prefix # send prefix keystroke to a window, useful with nested tmux sessions |
| 54 | + |
| 55 | +bind-key k select-pane -U # select-pane up: prefix-key + k |
| 56 | +bind-key j select-pane -D # select-pane down: prefix-key + j |
| 57 | +bind-key h select-pane -L # select-pane left: prefix-key + h |
| 58 | +bind-key l select-pane -R # select-pane right: prefix-key + l |
| 59 | +bind-key , split-window -v # split-window vertically: prefix-key + , |
| 60 | +bind-key . split-window -h # split-window horizontally: prefix-key + . |
| 61 | +bind-key -r K resize-pane -U 5 # resize-pane to up 5%: prefix-key + K |
| 62 | +bind-key -r J resize-pane -D 5 # resize-pane to down 5%: prefix-key + J |
| 63 | +bind-key -r H resize-pane -L 5 # resize-pane to left 5%: prefix-key + H |
| 64 | +bind-key -r L resize-pane -R 5 # resize-pane to right 5%: prefix-key + L |
| 65 | +bind-key r source-file /etc/tmux.conf \; display-message "Reloaded!" # reload tmux config file: prefix-key + r |
0 commit comments