From: Edward Delaporte Date: Mon, 6 Jul 2026 03:54:13 +0000 (-0500) Subject: Add dot install command X-Git-Url: https://apps.delaporte.us/gitweb/dotfiles.git/commitdiff_plain/8c7db1f6bb896bc732ec7aa925a7865d5e772f61?ds=sidebyside Add dot install command --- diff --git a/bin/dot b/bin/dot index 06d0db4..0fd7dd7 100755 --- 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" +INSTALLS="$HOME/dotfiles/install" read -d '' EMPTY_TASKFILE << EOF --- @@ -106,4 +107,14 @@ if [ "$1" == "apply" ]; then $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 +