2016-10-19 07:56:37 -07:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
case "$OSTYPE" in
|
|
|
|
darwin*)
|
|
|
|
brew install tmux
|
|
|
|
;;
|
|
|
|
linux*)
|
|
|
|
if [ -f /etc/arch-release ]; then
|
2016-10-30 06:28:05 -07:00
|
|
|
sudo pacman --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
|
|
|
|
esac
|
2016-11-10 09:30:54 -08:00
|
|
|
|
|
|
|
git-repo() { [[ -d $2 ]] || git clone "https://github.com/$1" "$2"; }
|
|
|
|
|
|
|
|
CWD="$(dirname $0)"
|
|
|
|
git-repo tmux-plugins/tpm "$CWD/.tmux/plugins/tpm"
|
2016-11-10 09:32:35 -08:00
|
|
|
git-repo jimeh/tmuxifier "$CWD/.tmuxifier"
|