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/os/linux/arch/provision.d/50-install-tmux-plugins.bash

20 lines
691 B
Bash
Raw Permalink Normal View History

#!/usr/bin/env bash
2021-03-22 11:09:02 -05:00
XDG_CONFIG_HOME="${XDG_CONFIG_HOME:-$HOME/.config}"
2020-11-07 22:23:52 -06:00
mkdir -p "$XDG_CONFIG_HOME/systemd/user"
2018-04-25 20:01:39 -05:00
2020-03-06 15:44:26 -06:00
[ ! -d "$XDG_CONFIG_HOME/tmux/plugins/tpm" ] && \
git clone https://github.com/tmux-plugins/tpm "$XDG_CONFIG_HOME/tmux/plugins/tpm"
2021-03-22 11:09:02 -05:00
echo "Reloading tmux config..."
tmux source-file "$HOME/.tmux.conf" &>/dev/null
2021-03-22 11:09:02 -05:00
echo "Installing tmux plugins..."
bash "$XDG_CONFIG_HOME/tmux/plugins/tpm/bindings/clean_plugins" &>/dev/null
bash "$XDG_CONFIG_HOME/tmux/plugins/tpm/bindings/install_plugins" &>/dev/null
bash "$XDG_CONFIG_HOME/tmux/plugins/tpm/bindings/update_plugins" &>/dev/null
2018-04-25 20:01:39 -05:00
2021-03-22 11:09:02 -05:00
echo "Finalizing tmux plugin installation..."
tmux source-file "$HOME/.tmux.conf" &>/dev/null