2016-11-10 09:32:57 -08:00
|
|
|
#!/usr/bin/env bash
|
2016-10-19 07:56:37 -07:00
|
|
|
|
2016-11-10 09:32:57 -08:00
|
|
|
case $OSTYPE in
|
2016-10-19 07:56:37 -07:00
|
|
|
darwin*)
|
|
|
|
brew install tmux
|
|
|
|
;;
|
|
|
|
linux*)
|
|
|
|
if [ -f /etc/arch-release ]; then
|
2016-11-10 09:32:57 -08:00
|
|
|
sudo pacman --needed --noconfirm -S tmux
|
2016-10-19 07:56:37 -07:00
|
|
|
elif [ -f /etc/debian-version ]; then
|
2016-10-30 06:28:05 -07:00
|
|
|
sudo apt-get install -y tmux
|
2016-10-19 07:56:37 -07:00
|
|
|
fi
|
2016-11-10 09:32:57 -08:00
|
|
|
;;
|
2016-10-19 07:56:37 -07:00
|
|
|
esac
|
2016-11-10 09:30:54 -08:00
|
|
|
|
2016-12-23 17:05:31 -08:00
|
|
|
if [[ -z $SERVER ]]; then
|
|
|
|
git-repo() { [[ -d $2 ]] || git clone "https://github.com/$1" "$2"; }
|
2016-11-10 09:30:54 -08:00
|
|
|
|
2016-12-23 17:05:31 -08:00
|
|
|
CWD="$(dirname $0)"
|
|
|
|
git-repo tmux-plugins/tpm "$CWD/.tmux/plugins/tpm"
|
|
|
|
git-repo jimeh/tmuxifier "$CWD/.tmuxifier"
|
|
|
|
fi
|