Skip to content

Instantly share code, notes, and snippets.

@larsch
Last active December 19, 2024 13:40
Show Gist options
  • Save larsch/9d37cf75d08535af0fc8b1a8213a8fa3 to your computer and use it in GitHub Desktop.
Save larsch/9d37cf75d08535af0fc8b1a8213a8fa3 to your computer and use it in GitHub Desktop.
#!/bin/sh
# https://github.com/tmux-plugins/tpm
# https://github.com/catppuccin/tmux
# https://github.com/tmux-plugins/tmux-sensible
set -eu
if [[ -d ~/.tmux/plugins/tpm ]]; then
git -C ~/.tmux/plugins/tpm pull
else
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
fi
cat >$HOME/.tmux.conf <<__EOF__
set-option -sa terminal-overrides ",xterm*:Tc"
set -g base-index 1
set -g pane-base-index 1
set-window-option -g pane-base-index 1
set -g @catppuccin_flavor "mocha"
set -g @catppuccin_window_status_style "rounded"
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'catppuccin/tmux'
run '~/.tmux/plugins/tpm/tpm'
__EOF__
$HOME/.tmux/plugins/tpm/bin/install_plugins
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment