metadot clone git://git.sarava.org/rhatto/dotfiles.git
+Or simply using
+
+ metadot clone default
+
Modules names as `dotfiles` have a special meaning and are handled like bundles
and are cloned directly as `~/.dotfiles`. After cloning, you can check the current
dotfiles revision using
DOT="$DEST/.dotfiles"
MODULES="$DOT/modules"
BACKUPS="$DEST/.backups/$DATE"
+DEFAULT="git://git.sarava.org/rhatto/dotfiles.git"
# Backup a file
function metadot_backup {
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."