Skip to content

Instantly share code, notes, and snippets.

@rchatham
Last active February 28, 2024 07:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rchatham/4a2cd1bf32eaf1f749993dbb7859dadf to your computer and use it in GitHub Desktop.
Save rchatham/4a2cd1bf32eaf1f749993dbb7859dadf to your computer and use it in GitHub Desktop.
tmux config
unbind C-b
set-option -g prefix C-Space
bind-key C-Space send-prefix
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
set-option -g mouse on
set -g default-terminal "screen-256color" # Setting the correct term
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'nhdaly/tmux-better-mouse-mode'
set -g @plugin 'rose-pine/tmux'
set -g @plugin 'MunifTanjim/tmux-mode-indicator'
set -g @rose_pine_variant 'main' # Options are 'main', 'moon' or 'dawn'
#set -g @rose_pine_host 'on' # Enables hostname in the status bar
set -g @rose_pine_date_time '%m/%d | %H:%M' # It accepts the date UNIX command format (man date for info)
set -g @rose_pine_user 'on' # Turn on the username component in the statusbar
set -g @rose_pine_bar_bg_disable 'on' # Disables background color, for transparent terminal emulators
# If @rose_pine_bar_bg_disable is set to 'on', uses the provided value to set the background color
# It can be any of the on tmux (named colors, 256-color set, `default` or hex colors)
# See more on http://man.openbsd.org/OpenBSD-current/man1/tmux.1#STYLES
set -g @rose_pine_bar_bg_disabled_color_option 'default'
set -g @rose_pine_default_window_behavior 'on' # Forces tmux default window list behaviour
set -g @rose_pine_show_current_program 'on' # Forces tmux to show the current running program as window name
set -g @rose_pine_show_pane_directory 'on' # Forces tmux to show the current directory as window name
set -g @rose_pine_status_left_prepend_section '#{tmux_mode_indicator}'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'
@rchatham
Copy link
Author

This can be created at ~/.tmux.conf or at ~/.config/tmux/tmux.conf.

@rchatham
Copy link
Author

Run tmux source ~/.config/tmux/tmux.conf to activate changes in tmux. Use the path to your tmux config if it is different.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment