tmux: fix styling

This commit is contained in:
2026-09-21 21:42:09 +02:00
parent edeee7debd
commit 0ca73bf029
2 changed files with 46 additions and 6 deletions
+34
View File
@@ -84,6 +84,38 @@ install_tmuxifier() {
fi
}
install_tmux_tpm() {
if [[ -x "$HOME/.config/tmux/plugins/tpm/tpm" ]]; then
echo "tmux TPM bereits installiert; fahre fort."
else
echo "Klone tmux TPM ..."
mkdir -p "$HOME/.config/tmux/plugins"
git clone https://github.com/tmux-plugins/tpm "$HOME/.config/tmux/plugins/tpm"
fi
}
install_tmux_plugins() {
local tpm_install="$HOME/.config/tmux/plugins/tpm/bin/install_plugins"
if ! command -v tmux >/dev/null 2>&1; then
echo "Warnung: tmux nicht installiert; ueberspringe Plugin-Installation (C-Space I beim ersten Start)."
return 0
fi
if ! command -v git >/dev/null 2>&1; then
echo "Warnung: git nicht installiert; ueberspringe tmux Plugin-Installation."
return 0
fi
if [[ ! -f "$HOME/.config/tmux/tmux.conf" ]]; then
echo "tmux.conf noch nicht verlinkt (stow laeuft nach setup.sh); Plugins werden beim ersten tmux-Start bzw. Re-Run installiert (C-Space I)."
return 0
fi
if [[ ! -x "$tpm_install" ]]; then
echo "Warnung: TPM install_plugins nicht gefunden; ueberspringe tmux Plugin-Installation."
return 0
fi
echo "Installiere tmux-Plugins via TPM ..."
"$tpm_install"
}
add_yazi_git_plugin() {
if command -v yazi >/dev/null 2>&1 && command -v ya >/dev/null 2>&1; then
if ya pkg list 2>/dev/null | grep -q 'yazi-rs/plugins:git'; then
@@ -110,6 +142,8 @@ main() {
set_fish_default_shell
install_tmuxifier
install_tmux_tpm
install_tmux_plugins
add_yazi_git_plugin
echo "==> Aktualisiere locate-Datenbank ..."