Last active
October 20, 2021 06:34
-
-
Save thikade/3642a877f740cc3b88f5b99f7a337e1b to your computer and use it in GitHub Desktop.
tmux config
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
## Tested with tmux 1.8 | |
# C-b is not acceptable -- Vim uses it | |
set-option -g prefix C-a | |
bind-key C-a last-window | |
# Start numbering at 1 | |
set -g base-index 1 | |
# reload config | |
bind r source-file ~/.tmux.conf \; display-message "Config reloaded..." | |
# auto window rename: Setting automatic-rename alters the name of the window based upon its active pane | |
set-window-option -g automatic-rename | |
# current window tab is RED (tmux v3) | |
set-window-option -g window-status-current-style bg=brightred,bright | |
# set window split | |
bind-key v split-window -h | |
bind-key b split-window | |
# Shift K to kill current window | |
bind-key K kill-window | |
# clock | |
set-window-option -g clock-mode-colour green #green | |
# Terminal coloring | |
set -g default-terminal "screen-256color" | |
# Prompt for window name upon creating a new window, Prefix + C (capital C): | |
bind-key C command-prompt -p "Name of new window: " "new-window -n '%%'" | |
# message text | |
# set-option -g message-style bg=colour235,fg=colour166 # bg=base02, fg=orange | |
# status bar styling | |
set-option -g status-fg brightwhite | |
set-option -g status-bg blue | |
##################################### | |
# create custom window/session layout | |
##################################### | |
## new-session -s "default" -n "master" | |
## send-keys -t %0 Space C-M | |
## new-window -n "master" | |
## send-keys -t %1 su Space - Space jmeter C-M dl Space master Space -f C-M | |
## new-window -n "slaves" | |
## # layouts are: even-horizontal even-vertical main-horizontal | |
## # can be toggled with "Prefix Space" | |
## split-window | |
## split-window | |
## split-window | |
## select-layout even-vertical | |
## # split-window -p 75 # split-window -p 66 # split-window -p 50 | |
## send-keys -t %1 ssh Space host1 C-M su Space - Space jmeter C-M dl Space slave Space -f C-M | |
## send-keys -t %2 ssh Space host2 C-M su Space - Space jmeter C-M dl Space slave Space -f C-M | |
## send-keys -t %3 ssh Space host3 C-M su Space - Space jmeter C-M dl Space slave Space -f C-M | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment