support for older tmux installs
This commit is contained in:
parent
84700e9cc5
commit
6314ff3c94
12
install.sh
12
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
|
||||
|
|
Loading…
Reference in New Issue