diff --git a/sync.sh b/sync.sh index 411b187..fa78af3 100755 --- a/sync.sh +++ b/sync.sh @@ -1,4 +1,4 @@ -while getopts ":hbsdtclwu" 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" @@ -83,11 +83,5 @@ while getopts ":hbsdtclwu" VALUE "$@"; do sudo vi `which wemux` +"execute \"normal gg/tmux\nnnea -2\nea -2\ggZZ\"" sudo vi /usr/local/etc/wemux.conf +":execute \"normal gg/host_list\nnww\"" fi - if [ "$VALUE" = "u" ] ; then - sudo cp unison/unisonNetworkOnPortForward.sh /etc/network/if-up.d/ - sudo vim /etc/rc.local +"execute \"normal /exit 0\Osudo -u stonewareslord ${PWD}/unison/unisonMonitor.sh &\ggZZ\"" - vim unison/unisonSync.sh +"execute \"gg/sync\$hci\"${PWD}\ggZZ\"" - echo "30 12 * * * ${PWD}/unison/unisonSync.sh" >> /etc/cron.d/unison - fi done echo "Done syncing" diff --git a/unison/unisonKill.sh b/unison/unisonKill.sh deleted file mode 100644 index faa488b..0000000 --- a/unison/unisonKill.sh +++ /dev/null @@ -1,2 +0,0 @@ -#! /bin/bash -ps aux | grep unison | awk '{print $2}' | xargs kill -9 diff --git a/unison/unisonMonitor.sh b/unison/unisonMonitor.sh deleted file mode 100644 index 9cd5d76..0000000 --- a/unison/unisonMonitor.sh +++ /dev/null @@ -1,2 +0,0 @@ -#! /bin/bash -unison default ~/Documents ssh://stonewareslord@localhost:9922//home/vinh/Backup/Documents -repeat watch -times -logfile /tmp/unison.log diff --git a/unison/unisonNetworkOnPortForward.sh b/unison/unisonNetworkOnPortForward.sh deleted file mode 100644 index 7b462ff..0000000 --- a/unison/unisonNetworkOnPortForward.sh +++ /dev/null @@ -1,2 +0,0 @@ -#! /bin/bash -sudo -u stonewareslord ssh stonewareslord@austenwares.com -Y -C -f -N -L 9922:austenwares.com:22 diff --git a/unison/unisonSync.sh b/unison/unisonSync.sh deleted file mode 100644 index 3a75308..0000000 --- a/unison/unisonSync.sh +++ /dev/null @@ -1,3 +0,0 @@ -#! /bin/bash -sync="~/applications/sync/" -unison -batch -times $SYNC ssh://stonewareslord@localhost:9922//home/stonewareslord/unison/sync -logfile /tmp/unison.log