Created
June 8, 2026 09:34
-
-
Save messa/41fea12e416272e5b953548e7d153e2b to your computer and use it in GitHub Desktop.
My tmux conf
This file contains hidden or 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.conf — konfigurace vyladěná hlavně pro Claude Code | |
| # tmux 3.5a | |
| # --- Klíčové pro Claude Code / TUI aplikace ------------------------------- | |
| # Žádná prodleva po Esc (jinak se Esc v Claude Code i ve vim chová líně) | |
| set -sg escape-time 0 | |
| # True color (24-bit). $TERM uvnitř tmuxu = tmux-256color, navenek RGB. | |
| set -g default-terminal "tmux-256color" | |
| set -ga terminal-features ",*:RGB" | |
| # Rozšířené klávesy → projde Shift+Enter (víceřádkový vstup v Claude Code), | |
| # Ctrl+Enter apod. | |
| set -s extended-keys on | |
| set -as terminal-features ",*:extkeys" | |
| # Předávání focus událostí do aplikace (Claude Code pozná přepnutí panelu/okna) | |
| set -g focus-events on | |
| # --- Pohodlí -------------------------------------------------------------- | |
| # Myš: scroll, výběr panelů, změna velikosti tažením | |
| set -g mouse on | |
| # Velký scrollback pro dlouhé výstupy | |
| set -g history-limit 100000 | |
| # Indexování oken/panelů od 1 (blíž ke klávesnici) | |
| set -g base-index 1 | |
| setw -g pane-base-index 1 | |
| set -g renumber-windows on | |
| # Titulky terminálu (užitečné při více session) | |
| set -g set-titles on | |
| set -g set-titles-string "#S:#W" | |
| # Delší zobrazení status zpráv | |
| set -g display-time 2000 | |
| # Vim-style copy mode | |
| setw -g mode-keys vi | |
| # --- Klávesové zkratky ----------------------------------------------------- | |
| # Reload konfigurace: prefix + r | |
| unbind r | |
| bind r source-file ~/.tmux.conf \; display "tmux.conf načten" | |
| # Intuitivnější dělení panelů (zachová aktuální adresář) | |
| bind | split-window -h -c "#{pane_current_path}" | |
| bind - split-window -v -c "#{pane_current_path}" | |
| # Přepínání panelů pomocí Alt+šipek bez prefixu | |
| bind -n M-Left select-pane -L | |
| bind -n M-Right select-pane -R | |
| bind -n M-Up select-pane -U | |
| bind -n M-Down select-pane -D | |
| # --- Status bar ------------------------------------------------------------ | |
| set -g status-interval 5 | |
| set -g status-style "bg=colour236,fg=colour250" | |
| set -g status-left "#[bold] #S " | |
| set -g status-left-length 30 | |
| set -g status-right "#[fg=colour244]%H:%M %d.%m." | |
| setw -g window-status-current-style "bg=colour39,fg=colour232,bold" | |
| setw -g window-status-current-format " #I:#W " | |
| setw -g window-status-format " #I:#W " |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment