]> gitweb.fluxo.info Git - metadot.git/commitdiff
Usage
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 1 Feb 2013 03:42:09 +0000 (01:42 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 1 Feb 2013 03:42:09 +0000 (01:42 -0200)
README.mdwn
metadot

index ca192d8dcd22b178dd57b63bab63526b53c7bcb7..714df1688c9422985a488478e9d8a60ffd7649a9 100644 (file)
@@ -6,12 +6,26 @@ Inspired by https://github.com/holman/dotfiles
 Instalation
 -----------
 
+Get the code:
+
     git clone --recursive git://URL/dotfiles.git .dotfiles
 
-Some configuration files depends on the "scripts" repository to
-be cloned at ~/apps/scripts.
+Then add .dotfiles folder to your path.
+
+Usage
+-----
+
+List existing modules:
+
+    metadot ls
+
+Load a module:
+
+    metadot load <module>
+
+Load all modules:
 
-Backups of your old files can be put into .dotfiles/backups.
+    metadot load --all
 
 Layout
 ------
@@ -41,5 +55,7 @@ Also,
 Todo
 ----
 
-- Put modules as git submodules.
+- Make modules as git submodules.
 - Better integration with scripts project.
+- Module descriptions.
+- Basic dependency.
diff --git a/metadot b/metadot
index f2bb2d78565efdeac34db1f73b8ad9acacdc9dfc..8d8a4e5da5e1510517dc45577fd70aa763f2bf3c 100755 (executable)
--- a/metadot
+++ b/metadot
@@ -1,6 +1,6 @@
 #!/bin/bash
 #
-# metadot: a dotfile manager
+# metadot: a dotfile management system
 #
 
 # Parameters
@@ -75,6 +75,8 @@ function metadot_load {
 if [ -z "$OPT" ]; then
   echo "usage: $BASENAME <option> [arguments]"
   exit 1
+elif [ "$OPT" == "ls" ]; then
+  ls -1 $MODULES
 elif [ "$OPT" == "update" ]; then
   ( cd $DOT && git pull origin master && git submodule update --init )
 elif [ "$OPT" == "load" ]; then