Last active
November 24, 2022 12:30
-
-
Save cipriantarta/628217d3805ce9892224ccb7d54854fa to your computer and use it in GitHub Desktop.
tmux config
This file contains 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
# improve colors | |
set -g default-shell $SHELL | |
set -g default-terminal 'screen-256color' | |
set-option -sa terminal-overrides ',xterm-256color:RGB' | |
#set-option -ga terminal-overrides ',XXX:Tc' | |
# act like GNU screen | |
unbind C-b | |
set -g prefix C-a | |
# start window numbers at 1 to match keyboard order with tmux window order | |
set -g base-index 1 | |
set-window-option -g pane-base-index 1 | |
# renumber windows sequentially after closing any of them | |
set -g renumber-windows on | |
# increase scrollback lines | |
set -g history-limit 10000 | |
# switch to last pane | |
bind-key C-a last-pane | |
# Status Bar --------------------- | |
# | |
# soften status bar colors | |
set -g status-bg '#12403c' | |
set -g status-fg '#eee8d5' | |
# More colors from Solarized | |
# $base03: #002b36; | |
# $base02: #073642; | |
# $base01: #586e75; | |
# $base00: #657b83; | |
# $base0: #839496; | |
# $base1: #93a1a1; | |
# $base2: #eee8d5; | |
# $base3: #fdf6e3; | |
# $yellow: #b58900; | |
# $orange: #cb4b16; | |
# $red: #dc322f; | |
# $magenta: #d33682; | |
# $violet: #6c71c4; | |
# $blue: #268bd2; | |
# $cyan: #2aa198; | |
# $green: #859900; | |
# remove administrative debris (session name, hostname, time) in status bar | |
set -g status-left '' | |
set -g status-right '' | |
set -g status-justify centre | |
set-option -g status-left-length 50 | |
set -g status-left "Session: #S" | |
# Local config | |
if-shell "[ -f ~/.tmux.conf.local ]" 'source ~/.tmux.conf.local' | |
# List of plugins | |
set -g @plugin 'tmux-plugins/tpm' # Tmux package manager | |
set -g @plugin 'tmux-plugins/tmux-sensible' | |
set -g @plugin 'tmux-plugins/tmux-open' # Open highlighted selection directly from Tmux | |
set -g @plugin 'tmux-plugins/tmux-resurrect' # Restore previous sessions on reboot | |
set -g @plugin 'tmux-plugins/tmux-continuum' # Restore previous sessions on reboot | |
# set -g @plugin 'tmux-plugins/tmux-cpu' #Show battery icon/status | |
set -g @plugin 'seebi/tmux-colors-solarized' | |
set -g @colors-solarized '256' | |
# status | |
set -g status-right '%d-%m-%Y %T ' | |
set -g status-interval 1 | |
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf) | |
run '~/.tmux/plugins/tpm/tpm' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment