feat: tmux 可以点击选择 panel

Signed-off-by: Li Tang <iamtangli42@gmail.com>
This commit is contained in:
2026-04-07 11:27:18 +08:00
parent 368d39aab3
commit 2aa176dff5
4 changed files with 23 additions and 1 deletions

View File

@@ -163,6 +163,17 @@ function cmd_init() {
print_success "Antigen already installed"
fi
# Install tpm (Tmux Plugin Manager)
local tpm_dir="$WORKING_DIR/tmux/plugins/tpm"
if [ -d "$tpm_dir" ]; then
print_success "tpm already installed"
else
print_warning "Installing tpm..."
mkdir -p "$WORKING_DIR/tmux/plugins"
git clone https://github.com/tmux-plugins/tpm "$tpm_dir"
print_success "tpm installed"
fi
# Create necessary directories
print_warning "Creating directories..."
mkdir -p "$HOME/.config/"
@@ -616,6 +627,15 @@ function cmd_check() {
missing=$((missing + 1))
fi
# Check tpm
echo -n "tpm: "
if [ -d "$WORKING_DIR/tmux/plugins/tpm" ]; then
print_success "installed"
else
print_error "not found"
missing=$((missing + 1))
fi
# Check symlinks
echo ""
echo "Symlinks:"