Last active
May 6, 2022 17:07
-
-
Save rafaellehmkuhl/5d14c1950a67cbea61e117d8f013d46b to your computer and use it in GitHub Desktop.
My default Tmux configuration
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
# | |
# Tmux configuration | |
# | |
# See: | |
# http://github.com/brandur/tmux-extra | |
# | |
# C-b is not acceptable -- Vim uses it | |
bind-key C-b last-window | |
# Start numbering at 1 | |
set -g base-index 1 | |
# Allows for faster key repetition | |
set -s escape-time 0 | |
# Set status bar | |
set -g status-bg black | |
set -g status-fg white | |
set -g status-left "" | |
set -g status-right "#[fg=green]#H" | |
# Rather than constraining window size to the maximum size of any client | |
# connected to the *session*, constrain window size to the maximum size of any | |
# client connected to *that window*. Much more reasonable. | |
setw -g aggressive-resize on | |
# Allows us to use C-a a <command> to send commands to a TMUX session inside | |
# another TMUX session | |
bind-key b send-prefix | |
# Examples | |
# -------- | |
# Activity monitoring | |
setw -g monitor-activity on | |
set -g visual-activity on | |
# Example of using a shell command in the status line | |
set -g status-right "#[fg=yellow]#(uptime | cut -d ',' -f 2-)" | |
# Reuse index from closed windows | |
set -g renumber-windows on | |
# Allow scrolling with mouse | |
set-option -g mouse on |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment