From 6314ff3c94558202f3881864bb9cdfdcb595d8fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Av=C3=A9?= <email@thomasave.be> Date: Wed, 17 May 2023 17:24:02 +0200 Subject: [PATCH] support for older tmux installs --- install.sh | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/install.sh b/install.sh index 33567bd..73a587c 100755 --- a/install.sh +++ b/install.sh @@ -148,12 +148,16 @@ if $TMUX; then dependencies="tmux git zsh xdg-utils" if [[ $OS == "NAME=\"Arch Linux\"" ]]; then $SUDO pacman -Sy --needed --noconfirm $dependencies + + ln -s $PWD/tmux $XDG_CONFIG_HOME/tmux + git clone https://github.com/tmux-plugins/tpm $XDG_DATA_HOME/tmux/plugins/tpm + $XDG_DATA_HOME/tmux/plugins/tpm/bin/install_plugins elif [[ $OS == "NAME=\"Ubuntu\"" ]]; then $SUDO apt update $SUDO apt install -y $dependencies - fi - ln -s $PWD/tmux $XDG_CONFIG_HOME/tmux - git clone https://github.com/tmux-plugins/tpm $XDG_DATA_HOME/tmux/plugins/tpm - zsh -c "$XDG_DATA_HOME/tmux/plugins/tpm/bin/install_plugins" + ln -s $PWD/tmux $HOME/.tmux + git clone https://github.com/tmux-plugins/tpm $HOME/.tmux/plugins/tpm + $HOME/.tmux/plugins/tpm/bin/install_plugins + fi fi