X-Git-Url: https://us-delaporte.pagekite.me/gitweb/dotfiles.git/blobdiff_plain/a619379ec7529c3ac6856b33288969687ec582ae..dbec994f7910bb719c1cd8c31335c5dc8fd9c6b3:/bin/dot diff --git a/bin/dot b/bin/dot index d816767..5d26436 100755 --- 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" @@ -225,7 +233,7 @@ read -d '' ADD_ENV << EOF stat: path: "$ENVS/$2" register: $2_path - - name: install $2 + - name: add env $2 ansible.builtin.shell: | cd $ENVS python3 -m venv $2