Skip to content

Instantly share code, notes, and snippets.

@meysam81
Created October 16, 2025 11:34
Show Gist options
  • Select an option

  • Save meysam81/4160ea643b8b50952e96d2fdabe21380 to your computer and use it in GitHub Desktop.

Select an option

Save meysam81/4160ea643b8b50952e96d2fdabe21380 to your computer and use it in GitHub Desktop.
# 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