support for older tmux installs
This commit is contained in:
parent
84700e9cc5
commit
6314ff3c94
14
install.sh
14
install.sh
|
@ -148,12 +148,16 @@ if $TMUX; then
|
||||||
dependencies="tmux git zsh xdg-utils"
|
dependencies="tmux git zsh xdg-utils"
|
||||||
if [[ $OS == "NAME=\"Arch Linux\"" ]]; then
|
if [[ $OS == "NAME=\"Arch Linux\"" ]]; then
|
||||||
$SUDO pacman -Sy --needed --noconfirm $dependencies
|
$SUDO pacman -Sy --needed --noconfirm $dependencies
|
||||||
elif [[ $OS == "NAME=\"Ubuntu\"" ]]; then
|
|
||||||
$SUDO apt update
|
|
||||||
$SUDO apt install -y $dependencies
|
|
||||||
fi
|
|
||||||
|
|
||||||
ln -s $PWD/tmux $XDG_CONFIG_HOME/tmux
|
ln -s $PWD/tmux $XDG_CONFIG_HOME/tmux
|
||||||
git clone https://github.com/tmux-plugins/tpm $XDG_DATA_HOME/tmux/plugins/tpm
|
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"
|
$XDG_DATA_HOME/tmux/plugins/tpm/bin/install_plugins
|
||||||
|
elif [[ $OS == "NAME=\"Ubuntu\"" ]]; then
|
||||||
|
$SUDO apt update
|
||||||
|
$SUDO apt install -y $dependencies
|
||||||
|
|
||||||
|
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
|
fi
|
||||||
|
|
Loading…
Reference in New Issue