Merge branch 'master' of 98.26.78.121:stonewareslord/Sync
This commit is contained in:
commit
32b7d73e00
15
sync.sh
15
sync.sh
@ -1,4 +1,13 @@
|
|||||||
while getopts ":bsdtc" VALUE "$@"; do
|
while getopts ":hbsdtc" VALUE "$@"; do
|
||||||
|
if [ "$VALUE" = "h" ] ; then
|
||||||
|
echo "sync.sh syncs configuration files, applications, and Vim bundles between computers"
|
||||||
|
echo " -h Shows this help"
|
||||||
|
echo " -b Syncs Vim bundles"
|
||||||
|
echo " -s Syncs computer with server applications in server.txt"
|
||||||
|
echo " -d Syncs computer with desktop applications in desktop.txt"
|
||||||
|
echo " -t Syncs tmux configuration file"
|
||||||
|
echo " -c Syncs other configuration files"
|
||||||
|
fi
|
||||||
if [ "$VALUE" = "b" ] ; then
|
if [ "$VALUE" = "b" ] ; then
|
||||||
mkdir -p ~/.vim/plugin/
|
mkdir -p ~/.vim/plugin/
|
||||||
mkdir -p ~/.vim/backup/
|
mkdir -p ~/.vim/backup/
|
||||||
@ -22,12 +31,12 @@ while getopts ":bsdtc" VALUE "$@"; do
|
|||||||
if [ "$VALUE" = "s" ] ; then
|
if [ "$VALUE" = "s" ] ; then
|
||||||
echo "Installing server applications:"
|
echo "Installing server applications:"
|
||||||
echo $(grep -vE "^\s*#" server.txt | tr "\n" " ")
|
echo $(grep -vE "^\s*#" server.txt | tr "\n" " ")
|
||||||
sudo apt-get update;sudo apt-get upgrade;sudo apt-get install $(grep -vE "^\s*#" server.txt | tr "\n" " ")
|
sudo apt-get install $(grep -vE "^\s*#" server.txt | tr "\n" " ")
|
||||||
fi
|
fi
|
||||||
if [ "$VALUE" = "d" ] ; then
|
if [ "$VALUE" = "d" ] ; then
|
||||||
echo "Installing desktop applications"
|
echo "Installing desktop applications"
|
||||||
echo $(grep -vE "^\s*#" desktop.txt | tr "\n" " ")
|
echo $(grep -vE "^\s*#" desktop.txt | tr "\n" " ")
|
||||||
sudo apt-get update;sudo apt-get upgrade;sudo apt-get install $(grep -vE "^\s*#" desktop.txt | tr "\n" " ")
|
sudo apt-get install $(grep -vE "^\s*#" desktop.txt | tr "\n" " ")
|
||||||
fi
|
fi
|
||||||
if [ "$VALUE" = "t" ] ; then
|
if [ "$VALUE" = "t" ] ; then
|
||||||
echo "Syncing tmux"
|
echo "Syncing tmux"
|
||||||
|
8
wemux.sh
8
wemux.sh
@ -1,4 +1,4 @@
|
|||||||
git clone git://github.com/zolrath/wemux.git /usr/local/share/wemux
|
sudo git clone git://github.com/zolrath/wemux.git /usr/local/share/wemux
|
||||||
ln -s /usr/local/share/wemux/wemux /usr/local/bin/wemux
|
sudo ln -s /usr/local/share/wemux/wemux /usr/local/bin/wemux
|
||||||
cp /usr/local/share/wemux/wemux.conf.example /usr/local/etc/wemux.conf
|
sudo cp /usr/local/share/wemux/wemux.conf.example /usr/local/etc/wemux.conf
|
||||||
vim /usr/local/etc/wemux.conf +:13
|
sudo vi /usr/local/etc/wemux.conf +:13
|
||||||
|
Loading…
x
Reference in New Issue
Block a user