Re-added sync.sh -l option
This commit is contained in:
commit
f4e7d4bdd0
14
sync.sh
14
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"
|
||||
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user