aboutsummaryrefslogtreecommitdiff
path: root/metadot
diff options
context:
space:
mode:
Diffstat (limited to 'metadot')
-rwxr-xr-xmetadot7
1 files changed, 6 insertions, 1 deletions
diff --git a/metadot b/metadot
index a6fdd16..69d5054 100755
--- a/metadot
+++ b/metadot
@@ -36,6 +36,7 @@ BASENAME="`basename $0`"
DOT="$DEST/.dotfiles"
MODULES="$DOT/modules"
BACKUPS="$DEST/.backups/$DATE"
+DEFAULT="git://git.sarava.org/rhatto/dotfiles.git"
# Backup a file
function metadot_backup {
@@ -118,7 +119,11 @@ elif [ "$OPT" == "backup" ]; then
metadot_backup $1
elif [ "$OPT" == "clone" ]; then
shift
- if [ "`basename $1 .git`" == "dotfiles" ]; then
+ if [ "$1" == "default" ]; then
+ metadot_backup $DOT
+ git clone --recursive $DEFAULT $DOT
+ echo "Backups saved at $BACKUPS."
+ elif [ "`basename $1 .git`" == "dotfiles" ]; then
metadot_backup $DOT
git clone --recursive $1 $DOT
echo "Backups saved at $BACKUPS."