23 lines
400 B
Bash
Executable File
23 lines
400 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
if ! pacman -Q tmux &>/dev/null; then
|
|
echo "tmux is not installed."
|
|
exit 1
|
|
fi
|
|
|
|
TPM_DIR="$HOME/.tmux/plugins/tpm"
|
|
|
|
# Check if TPM is already installed
|
|
if [ -d "$TPM_DIR" ]; then
|
|
echo "TPM is already installed in $TPM_DIR"
|
|
else
|
|
echo "Installing Tmux Plugin Manager (TPM)..."
|
|
git clone https://github.com/tmux-plugins/tpm $TPM_DIR
|
|
fi
|
|
|
|
echo "TPM installed successfully!"
|
|
|
|
|