diff --git a/sync.sh b/sync.sh index 6376c51..59b875e 100755 --- a/sync.sh +++ b/sync.sh @@ -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" @@ -52,5 +52,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"