Added a -l flag for linking Directories to directories in ~
This commit is contained in:
parent
4dc1019fdd
commit
7b427b7b14
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"
|
||||
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user