Created
April 5, 2022 00:32
-
-
Save danielnegri/f6c12abd343ea99fe7f179ae071a17c2 to your computer and use it in GitHub Desktop.
$HOME/.tmux.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#set -g default-terminal "screen-256color" | |
# change prefix command to C-z | |
set -g prefix C-z | |
unbind C-b | |
bind C-z last-window | |
bind z send-prefix | |
# Turn on mouse support | |
setw -g mouse on | |
# Allow xterm titles in terminal window, terminal scrolling with scrollbar, and setting overrides of C-Up, C-Down, C-Left, C-Right | |
# set -g terminal-overrides "xterm*:XT:smcup@:rmcup@:kUP5=\eOA:kDN5=\eOB:kLFT5=\eOD:kRIT5=\eOC" | |
# Scroll History | |
set -g history-limit 30000 | |
# Set ability to capture on start and restore on exit window data when running an application | |
setw -g alternate-screen on | |
# Lower escape timing from 500ms to 50ms for quicker response to scroll-buffer access. | |
set -s escape-time 50 | |
# setup | and - for window splitting | |
unbind % | |
bind | split-window -h | |
bind _ split-window -v | |
bind + resize-pane -U 2 | |
bind - resize-pane -D 2 | |
# colors | |
#set -g default-terminal "screen-256color" | |
# title | |
set -g set-titles on | |
set -g set-titles-string '#T' | |
#set -g status-justify centre | |
# start window numbering at 1 for easier switching | |
set -g base-index 1 | |
setw -g pane-base-index 1 | |
# start numbering at 1 | |
set -g base-index 1 | |
# default statusbar colors | |
set-option -g status-style bg=colour0,fg=colour7,default | |
# default window title colors | |
set-window-option -g window-status-style fg=colour6,bg=default | |
#set-window-option -g window-status-attr dim | |
set-window-option -g automatic-rename on | |
# active window title colors | |
setw -g window-status-current-format "|#I:#W|" | |
set-window-option -g window-status-current-style fg=colour4,bg=default | |
#set-window-option -g window-status-current-attr bright | |
# pane border | |
set-option -g pane-border-style fg=colour235 | |
set-option -g pane-active-border-style fg=colour240 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment