Skip to content

Instantly share code, notes, and snippets.

@touero
Last active July 21, 2026 04:10
Show Gist options
  • Select an option

  • Save touero/dab61be793ad363596e26ce7d44057b5 to your computer and use it in GitHub Desktop.

Select an option

Save touero/dab61be793ad363596e26ce7d44057b5 to your computer and use it in GitHub Desktop.
tmux config in server

tmux config in server

curl -fsSL 'https://gist.githubusercontent.com/touero/dab61be793ad363596e26ce7d44057b5/raw/926b7f8386bd6c1faba7ec3b9dfa56ea81262642/install.sh' | sh
#!/bin/sh
set -e
TMUX_CONFIG_DIR="$HOME/.config/tmux"
TMUX_CONFIG="$TMUX_CONFIG_DIR/tmux.conf"
TMUX_GRUVBOX_DIR="$TMUX_CONFIG_DIR/tmux-gruvbox"
TMUX_CONFIG_URL='https://gist.githubusercontent.com/touero/dab61be793ad363596e26ce7d44057b5/raw/e32760d4be5764e535c37338c4cd1ad7047638a1/tmux.conf'
TMUX_GRUVBOX_REPO='https://github.com/egel/tmux-gruvbox.git'
mkdir -p "$TMUX_CONFIG_DIR"
curl -fsSL "$TMUX_CONFIG_URL" -o "$TMUX_CONFIG"
rm -rf "$TMUX_GRUVBOX_DIR"
git clone --depth 1 \
"$TMUX_GRUVBOX_REPO" \
"$TMUX_GRUVBOX_DIR"
tmux kill-server 2>/dev/null || true
printf '%s\n' "tmux configuration installed: $TMUX_CONFIG"
printf '%s\n' "tmux-gruvbox installed: $TMUX_GRUVBOX_DIR"
printf '%s\n' "Run 'tmux' to start."
bind v copy-mode
set -g mouse on
set -g status-interval 10
set -g base-index 0
set -g pane-base-index 1
set -g renumber-windows on
set -g pane-border-lines heavy
set -g default-terminal "tmux-256color"
set -as terminal-features ",xterm-256color:RGB"
set -as terminal-features ",tmux-256color:RGB"
setw -g mode-keys vi
set -g @tmux-gruvbox 'dark'
run-shell "$HOME/.config/tmux/tmux-gruvbox/gruvbox-tpm.tmux"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment