Skip to content

Instantly share code, notes, and snippets.

@algacyr-melo
Last active March 22, 2025 19:30
Show Gist options
  • Select an option

  • Save algacyr-melo/015fd794a91d747c419b4219e8faeb5a to your computer and use it in GitHub Desktop.

Select an option

Save algacyr-melo/015fd794a91d747c419b4219e8faeb5a to your computer and use it in GitHub Desktop.
set -g default-terminal "tmux-256color"
set -ag terminal-overrides ",xterm-256color:RGB"
# Or use a wildcard instead of forcing a default mode.
# Some users in the comments of this gist have reported that this work better.
#set -sg terminal-overrides ",*:RGB"
# You can also use the env variable set from the terminal.
# Useful if you share your configuration betweeen systems with a varying value.
#set -ag terminal-overrides ",$TERM:RGB"
# Enable Vi mode
setw -g mode-keys vi
# Bind new window to the current working directory
bind c new-window -c "#{pane_current_path}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment