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

21 lines
494 B
Bash
Executable file

#!/usr/bin/env bash
case $OSTYPE in
darwin*)
brew install tmux
;;
linux*)
if [ -f /etc/arch-release ]; then
sudo pacman --needed --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"
git-repo jimeh/tmuxifier "$CWD/.tmuxifier"