Added -w flag to sync from wemux. Wemux script now automatically executes tmux -2 instead of just tmux now.

This commit is contained in:
Austen Adler 2014-07-07 15:43:52 -04:00
parent 6eac101626
commit 46a7ff042a
2 changed files with 8 additions and 5 deletions

View File

@ -1,4 +1,4 @@
while getopts ":hbsdtcl" VALUE "$@"; do
while getopts ":hbsdtclw" VALUE "$@"; do
if [ "$VALUE" = "h" ] ; then
echo "sync.sh syncs configuration files, applications, and Vim bundles between computers"
echo " -h Shows this help"
@ -76,5 +76,12 @@ while getopts ":hbsdtcl" VALUE "$@"; do
ln -s ~/Videos ~/videos
echo "Done"
fi
if [ "$VALUE" = "w" ] ; then
sudo git clone git://github.com/zolrath/wemux.git /usr/local/share/wemux
sudo ln -s /usr/local/share/wemux/wemux /usr/local/bin/wemux
sudo cp /usr/local/share/wemux/wemux.conf.example /usr/local/etc/wemux.conf
sudo vi `which wemux` +"execute \"normal gg/tmux\<CR>nnnea -2\<Esc>nea -2\<Esc>ggZZ\""
sudo vi /usr/local/etc/wemux.conf +":execute \"normal gg/host_list\<CR>nnww\""
fi
done
echo "Done syncing"

View File

@ -1,4 +0,0 @@
sudo git clone git://github.com/zolrath/wemux.git /usr/local/share/wemux
sudo ln -s /usr/local/share/wemux/wemux /usr/local/bin/wemux
sudo cp /usr/local/share/wemux/wemux.conf.example /usr/local/etc/wemux.conf
sudo vi /usr/local/etc/wemux.conf +:13