Re-added sync.sh -l option

This commit is contained in:
Austen Adler 2014-07-07 03:22:04 -04:00
commit f4e7d4bdd0

14
sync.sh
View File

@ -1,4 +1,4 @@
while getopts ":hbsdtc" VALUE "$@"; do
while getopts ":hbsdtcl" VALUE "$@"; do
if [ "$VALUE" = "h" ] ; then
echo "sync.sh syncs configuration files, applications, and Vim bundles between computers"
echo " -h Shows this help"
@ -56,5 +56,17 @@ while getopts ":hbsdtc" VALUE "$@"; do
ln -s ${PWD}/gitconfig ~/.gitconfig
ln -s ${PWD}/bashrc ~/.bashrc
fi
if [ "$VALUE" = "l" ] ; then
echo "Linking standard directories..."
mkdir -p ~/Applications
ln -s ~/Applications ~/applications
ln -s ~/Desktop ~/desktop
ln -s ~/Documents ~/documents
ln -s ~/Downloads ~/downloads
ln -s ~/Music ~/music
ln -s ~/Pictures ~/pictures
ln -s ~/Videos ~/videos
echo "Done"
fi
done
echo "Done syncing"