]> apps.delaporte.us Git - dotfiles.git/blobdiff - bin/dot
Add dot install command
[dotfiles.git] / bin / dot
diff --git a/bin/dot b/bin/dot
index 06d0db4640ad8c658f1d5c50850a6261aaf021ce..0fd7dd78094f0f527a965d595f1f8dcc6c7b1f29 100755 (executable)
--- a/bin/dot
+++ b/bin/dot
@@ -26,6 +26,7 @@ ENVS="$HOME/envs"
 ANSIBLE="$ENVS/ansible/bin/ansible-playbook"
 TASKFILE="$HOME/dot.$HOSTNAME.yaml"
 LINKFILES="$HOME/dotfiles/files"
 ANSIBLE="$ENVS/ansible/bin/ansible-playbook"
 TASKFILE="$HOME/dot.$HOSTNAME.yaml"
 LINKFILES="$HOME/dotfiles/files"
+INSTALLS="$HOME/dotfiles/install"
 
 read -d '' EMPTY_TASKFILE << EOF
 ---
 
 read -d '' EMPTY_TASKFILE << EOF
 ---
@@ -106,4 +107,14 @@ if [ "$1" == "apply" ]; then
        $ANSIBLE $TASKFILE
 fi
 
        $ANSIBLE $TASKFILE
 fi
 
+if [ "$1" == "install" ]; then
+       if [ ! -n "$2" ]; then
+               echo "Can install:"
+               cd $INSTALLS
+               ls -p | grep -v /
+               exit 1
+       fi
+       $INSTALLS/$2
+fi
+