Created
October 16, 2025 11:34
-
-
Save meysam81/4160ea643b8b50952e96d2fdabe21380 to your computer and use it in GitHub Desktop.
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
| # Unbind default prefix | |
| unbind C-b | |
| # Set new prefix to C-v | |
| set-option -g prefix C-v | |
| # Bind C-v C-v to send prefix to application | |
| bind-key C-v send-prefix | |
| # Split panes using current directory | |
| bind-key % split-window -h -c "#{pane_current_path}" | |
| bind-key '"' split-window -v -c "#{pane_current_path}" | |
| # Status bar configuration | |
| set-option -g status-position bottom | |
| set-option -g status-style bg=colour235,fg=colour247 | |
| set-option -g status-left-length 40 | |
| set-option -g status-right-length 60 | |
| # Left: session name and window count | |
| set-option -g status-left "#[fg=colour250,bg=colour238] #S #[fg=colour244,bg=colour235] [#I:#P] " | |
| # Center: window list | |
| set-option -g window-status-format " #I:#W " | |
| set-option -g window-status-current-format "#[fg=colour235,bg=colour244] #I:#W #[default]" | |
| # Right: hostname, date, time | |
| set-option -g status-right "#[fg=colour244]#H #[fg=colour250]| %Y-%m-%d #[fg=colour250]| %H:%M " | |
| # Refresh status bar every 60 seconds | |
| set-option -g status-interval 60 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment