2013-03-21 00:07:56 -07:00
|
|
|
#!/bin/zsh
|
2013-03-17 07:00:32 -07:00
|
|
|
|
2013-03-21 00:07:56 -07:00
|
|
|
if ! command-exists brew; then
|
2013-03-17 07:00:32 -07:00
|
|
|
echo "Requires homebrew"
|
|
|
|
exit
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ ! `command -v "tmux"` ]; then
|
2013-03-21 00:07:56 -07:00
|
|
|
echoh "==> Tmux: Installing tmux & reattach-to-user-namespace"
|
|
|
|
brew install tmux reattach-to-user-namespace libevent | indent
|
2013-03-17 07:00:32 -07:00
|
|
|
else
|
2013-03-21 00:07:56 -07:00
|
|
|
echoh "==> Tmux: already installed!"
|
2013-03-17 07:00:32 -07:00
|
|
|
fi
|
|
|
|
|
2013-03-21 00:07:56 -07:00
|
|
|
echoh "==> Tmux: Setting up symlinks"
|
2013-03-17 20:41:01 -07:00
|
|
|
src=$(cd "$(dirname "$0")/.."; pwd)
|
2013-03-17 07:00:32 -07:00
|
|
|
ln -sf $src/tmux.conf ~/.tmux.conf
|
2013-03-21 00:07:56 -07:00
|
|
|
|
|
|
|
echoh "==> Tmux: DONE!"
|