Added -w flag to sync from wemux. Wemux script now automatically executes tmux -2 instead of just tmux now.
This commit is contained in:
parent
6eac101626
commit
46a7ff042a
9
sync.sh
9
sync.sh
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user