This repository has been archived on 2024-03-28. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles/env/arch-linux/provisioning/tmux-plugins.bash

22 lines
636 B
Bash
Executable file

#!/usr/bin/env bash
mkdir -p "$HOME/.config/systemd/user"
# tmux plugin manager
[ ! -d "$XDG_CONFIG_HOME/tmux/plugins/tpm" ] && \
git clone https://github.com/tmux-plugins/tpm "$XDG_CONFIG_HOME/tmux/plugins/tpm"
# load tmux config
tmux source-file "$HOME/.tmux.conf"
# clean, install, and update plugins
bash "$XDG_CONFIG_HOME/tmux/plugins/tpm/bindings/clean_plugins"
bash "$XDG_CONFIG_HOME/tmux/plugins/tpm/bindings/install_plugins"
bash "$XDG_CONFIG_HOME/tmux/plugins/tpm/bindings/update_plugins"
# load tmux config
tmux source-file "$HOME/.tmux.conf"
systemctl --user enable tmux.service
systemctl --user restart tmux.service