helm/shell/tmux/install
2016-11-10 18:32:18 +01:00

19 lines
425 B
Bash
Executable file

#!/bin/bash
case "$OSTYPE" in
darwin*)
brew install tmux
;;
linux*)
if [ -f /etc/arch-release ]; then
sudo pacman --noconfirm -S tmux
elif [ -f /etc/debian-version ]; then
sudo apt-get install -y tmux
fi
esac
git-repo() { [[ -d $2 ]] || git clone "https://github.com/$1" "$2"; }
CWD="$(dirname $0)"
git-repo tmux-plugins/tpm "$CWD/.tmux/plugins/tpm"