.tmux.conf
· 1.5 KiB · Text
Brut
# Number windows and panes starting at 1 so that we can jump to them easier.
set -g base-index 1
set -g pane-base-index 1
# Makes pressing ESC in VIM happen without delay (https://github.com/neovim/neovim/wiki/FAQ#esc-in-tmux-or-gnu-screen-is-delayed)
set -g escape-time 10
# Enable mouse mode
set-option -g mouse on
# Set the prefix to Ctrl+F
set-option -g prefix C-t
# Allow certain keybindings to be repeated. For example resizing with arrow keys is continous when key is held.
set-option -g repeat-time 500
# Enable the status line
set-option -g status on
# Settings related to to the window titles.
# Disable automatic renaming of windows
set-window-option -g automatic-rename off
set-window-option -g allow-rename off
# Only display the window title if it was set manually and isn't login
#set-window-option -g window-status-format " #I #{?#{!=:#W,"login"},#W ,}"
set-window-option -g window-status-format " #I "
# If the current window is the only one, don't display anything. Otherwise display the Number.
set-window-option -g window-status-current-format "#{?#{!=:#{session_windows},1}, #I ,}"
# Color of the command mode
# Set the color of the borders
# Set TERM to something sensible
set -g default-terminal "xterm-256color"
# ¯\_(ツ)_/¯
set-option -ga terminal-overrides ",xterm*:Tc"
# Open split window with current path
#bind c new-window -c "#{pane_current_path}"
bind '"' split-window -vc "#{pane_current_path}"
bind % split-window -hc "#{pane_current_path}"
bind C-t send-prefix
| 1 | # Number windows and panes starting at 1 so that we can jump to them easier. |
| 2 | set -g base-index 1 |
| 3 | set -g pane-base-index 1 |
| 4 | |
| 5 | # Makes pressing ESC in VIM happen without delay (https://github.com/neovim/neovim/wiki/FAQ#esc-in-tmux-or-gnu-screen-is-delayed) |
| 6 | set -g escape-time 10 |
| 7 | |
| 8 | # Enable mouse mode |
| 9 | set-option -g mouse on |
| 10 | |
| 11 | # Set the prefix to Ctrl+F |
| 12 | set-option -g prefix C-t |
| 13 | |
| 14 | # Allow certain keybindings to be repeated. For example resizing with arrow keys is continous when key is held. |
| 15 | set-option -g repeat-time 500 |
| 16 | |
| 17 | # Enable the status line |
| 18 | set-option -g status on |
| 19 | |
| 20 | |
| 21 | # Settings related to to the window titles. |
| 22 | # Disable automatic renaming of windows |
| 23 | set-window-option -g automatic-rename off |
| 24 | set-window-option -g allow-rename off |
| 25 | # Only display the window title if it was set manually and isn't login |
| 26 | #set-window-option -g window-status-format " #I #{?#{!=:#W,"login"},#W ,}" |
| 27 | set-window-option -g window-status-format " #I " |
| 28 | # If the current window is the only one, don't display anything. Otherwise display the Number. |
| 29 | set-window-option -g window-status-current-format "#{?#{!=:#{session_windows},1}, #I ,}" |
| 30 | |
| 31 | # Color of the command mode |
| 32 | |
| 33 | # Set the color of the borders |
| 34 | |
| 35 | # Set TERM to something sensible |
| 36 | set -g default-terminal "xterm-256color" |
| 37 | |
| 38 | # ¯\_(ツ)_/¯ |
| 39 | set-option -ga terminal-overrides ",xterm*:Tc" |
| 40 | |
| 41 | # Open split window with current path |
| 42 | #bind c new-window -c "#{pane_current_path}" |
| 43 | bind '"' split-window -vc "#{pane_current_path}" |
| 44 | bind % split-window -hc "#{pane_current_path}" |
| 45 | |
| 46 | bind C-t send-prefix |