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