]> us-delaporte.pagekite.me Git - dotfiles.git/commitdiff
Add dot list command
authorEdward Delaporte <edward@delaporte.us>
Thu, 16 Jul 2026 21:16:24 +0000 (16:16 -0500)
committerEdward Delaporte <edward@delaporte.us>
Thu, 16 Jul 2026 21:16:24 +0000 (16:16 -0500)
bin/dot

diff --git a/bin/dot b/bin/dot
index 009f9aa03d769ac5d2d5ed468473263379265d56..5d26436cdb74aebf93be83d902ece9be5019d237 100755 (executable)
--- a/bin/dot
+++ b/bin/dot
@@ -47,6 +47,9 @@ EOF
 
 read -d '' EXTRA_HELP << EOF
 
+dot list
+  display the contents of $TASKFILE
+
 dot install SCRIPT
   updates ~/dot.HOSTNAME.yaml
   to run ~/dotfiles/SCRIPT.sh if it has not yet been run
@@ -95,6 +98,11 @@ if [[ ! -f "$TASKFILE" ]]; then
        echo "$EMPTY_TASKFILE" >> $TASKFILE
 fi
 
+if [ "$1" == "list" ]; then
+       cat $TASKFILE
+       exit 0
+fi
+
 if [ "$1" == "setup" ]; then
   if [[ ! -f "$ANSIBLE" ]]; then
                mkdir -p "$ENVS"