Skip to content

Instantly share code, notes, and snippets.

@tassaron
Last active May 20, 2022 02:03
Show Gist options
  • Save tassaron/df19e45fbb2d7a45f616aa617c974cd2 to your computer and use it in GitHub Desktop.
Save tassaron/df19e45fbb2d7a45f616aa617c974cd2 to your computer and use it in GitHub Desktop.
my tmux configuration
# Tmux configuration
set -g default-terminal "screen-256color"
set -g mouse on
# Alternative shells for bugtesting
#set -g default-shell "$HOME/code/bash/bash-3.2.57/bash"
#set -g default-shell /usr/bin/zsh
# Change prefix to nest inside another session
#unbind C-b
#set-option -g prefix C-a
# TPM Plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-prefix-highlight'
set -g @plugin 'tmux-plugins/tmux-cpu'
set -g @df_cmd_private1 "$HOME"
set -g @plugin 'tassaron/tmux-df'
set -g @plugin 'tassaron/nagcat'
# Statusbar
set -g status-position top
set -g status-bg black
set -g status-fg white
set -g status-right '#{prefix_highlight}#[bg=black]#{nagcat} #{df_avail}/#{df_avail_private1} |#{cpu_bg_color} CPU #{cpu_percentage} #[bg=black]|#{ram_bg_color} MEM #{ram_percentage} #[bg=black]| %a %b %d %H:%M'
set -g status-right-length 90
# Automatically download TPM from GitHub
#if "test ! -d ~/.tmux/plugins/tpm" \
# "run 'git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm && ~/.tmux/plugins/tpm/bin/install_plugins'"
# Initialize TPM (keep this line at the bottom)
run '~/.tmux/plugins/tpm/tpm'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment