From 1482e3aac8c7b7efab2ce35c32743d00d5b5d187 Mon Sep 17 00:00:00 2001 From: Edward Delaporte Date: Sun, 5 Jul 2026 23:35:04 -0500 Subject: [PATCH] Update help text --- bin/dot | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/bin/dot b/bin/dot index c3e4a6a..d99ef6e 100755 --- a/bin/dot +++ b/bin/dot @@ -1,17 +1,28 @@ #!/bin/bash +ENVS="$HOME/envs" +ANSIBLE="$ENVS/ansible/bin/ansible-playbook" read -d '' HELP << EOF dot - a (mostly) one script dotfiles manager +1. Install this file on your path +2. Clone your (or my) 'dotfiles' repository to ~/dotfiles +3. Run 'dot help' to get started. + Copyright 2026 Edward Delaporte V Licensed under AGPLv3 and later. dot setup - install the necessary tools to $HOME/envs/dot + install ansible CLI to $ANSIBLE dot link FILE updates ~/dot.HOSTNAME.yaml to include a symlink from ~/dotfiles/files/FILE to ~/.FILE +dot install SCRIPT + updates ~/dot.HOSTNAME.yaml + to run ~/dotfiles/SCRIPT.sh if it has not yet been run + creates ~/dot/SCRIPT.installed after SCRIPT has been run + dot check check setup against ~/dot.HOSTNAME.yaml @@ -24,8 +35,6 @@ if [ ! -n "$1" ] || [ "$1" == "help" ]; then fi # set -v -ENVS="$HOME/envs" -ANSIBLE="$ENVS/ansible/bin/ansible-playbook" TASKFILE="$HOME/dot.$HOSTNAME.yaml" LINKFILES="$HOME/dotfiles/files" INSTALLS="$HOME/dotfiles/install" @@ -81,7 +90,7 @@ fi if [ "$1" == "link" ]; then if [ ! -n "$2" ]; then - echo "May symlink:" + echo "Can symlink: (from $LINKFILES)" cd $LINKFILES ls -p | grep -v / exit 1 @@ -112,9 +121,9 @@ fi if [ "$1" == "install" ]; then if [ ! -n "$2" ]; then - echo "Can install:" + echo "Can install: (.sh scripts in $INSTALLS)" cd $INSTALLS - ls -p | grep -v / + ls -p | grep -v / | grep .sh exit 1 fi if [[ ! -f "$INSTALLS/$2.sh" ]]; then -- 2.47.3