Skip to content

Instantly share code, notes, and snippets.

@dardo82
Last active April 11, 2025 22:59
Show Gist options
  • Save dardo82/59bfcc86c48acb82549eea05aec2b684 to your computer and use it in GitHub Desktop.
Save dardo82/59bfcc86c48acb82549eea05aec2b684 to your computer and use it in GitHub Desktop.
Tmux Conf
# Tmux Conf
bind-key "Y" paste-buffer
bind-key "y" paste-buffer -p -s ""
bind-key "PPage" swap-pane -U
bind-key "NPage" swap-pane -D
bind-key "R" source-file "~/.tmux.conf"
bind-key -T root "IC" copy-mode
bind-key -T root "M--" split-window
bind-key -T root "M-|" split-window -h
bind-key -T root "C-Up" select-pane -U
bind-key -T root "C-Down" select-pane -D
bind-key -T root "C-Left" select-pane -L
bind-key -T root "C-Right" select-pane -R
bind-key -T copy-mode-vi "R" send-keys -X rectangle-toggle
bind-key -T copy-mode-vi "S" send-keys -X next-space-end
bind-key -T copy-mode-vi "a" send-keys -X append-selection
bind-key -T copy-mode-vi "Enter" send-keys -X copy-selection-and-cancel block-buffer
set-option -g mouse "on"
set-option -g prefix "C-x"
set-option -g lock-after-time "300"
set-option -g prompt-history-limit "1000"
set-option -g history-file "~/.tmux_history"
set-option -g status-interval "1"
set-option -g status-style "bg=blue, fg=white"
set-option -g message-command-style "bg=black, fg=cyan"
set-option -g message-style "bg=cyan, fg=black"
set-option -g copy-mode-current-match-style "bg=magenta,fg=black"
set-option -g copy-mode-match-style "bg=cyan, fg=black"
set-option -g copy-mode-mark-style "bg=green, fg=black"
set-option -g menu-border-lines "rounded"
set-option -g menu-selected-style "bg=white, fg=black"
set-option -g mode-style "bg=yellow, fg=black"
set-option -g clock-mode-colour "green"
set-option -g display-panes-active-colour "white"
set-option -g display-panes-colour "blue"
set-option -g pane-active-border-style "#{?pane_in_mode,fg=yellow,#{?synchronize-panes,fg=red,fg=green}}"
set-option -g pane-border-style "#{?pane_in_mode,fg=yellow,#{?synchronize-panes,fg=red,fg=blue}}"
set-option -g pane-border-format "#{?pane_active,#[reverse],}#{pane_index}#[default]-#{pane_title}"
set-option -g pane-border-lines "simple"
set-option -g pane-border-status "top"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment