From 9f8d332f72b9255193f139f1d1f4f3e9a6b95f06 Mon Sep 17 00:00:00 2001 From: Joe Lillibridge Date: Wed, 4 Dec 2024 12:06:08 -0600 Subject: [PATCH] wip --- .config/yadm/bootstrap##template | 20 ------------------- .../yadm/bootstrap.d/pure-prompt.sh##os.Linux | 4 ++++ .../bootstrap.d/yalc.sh##class.Work,os.Darwin | 13 ++++++++++++ .gitignore | 1 + 4 files changed, 18 insertions(+), 20 deletions(-) create mode 100644 .config/yadm/bootstrap.d/pure-prompt.sh##os.Linux create mode 100644 .config/yadm/bootstrap.d/yalc.sh##class.Work,os.Darwin diff --git a/.config/yadm/bootstrap##template b/.config/yadm/bootstrap##template index 602c103..6e1927d 100755 --- a/.config/yadm/bootstrap##template +++ b/.config/yadm/bootstrap##template @@ -82,23 +82,3 @@ find -L "$BOOTSTRAP_D" -type f | sort | while IFS= read -r bootstrap; do fi fi done - -hash -r - -{% if yadm.os == "Linux" %} -npm install --global pure-prompt -{% endif %} - -{% if yadm.class == "Work" %} -YARN=$(brew --prefix yarn)/bin/yarn - -if (command -v "$YARN" >/dev/null 2>&1); then - # Install yalc. Needed for local-publish - echo "Installing yalc..." - if ! $YARN global add yalc; then - echo "Failed to install yalc" >&2 - else - echo "Successfully installed yalc" - fi -fi -{% endif %} diff --git a/.config/yadm/bootstrap.d/pure-prompt.sh##os.Linux b/.config/yadm/bootstrap.d/pure-prompt.sh##os.Linux new file mode 100644 index 0000000..86fb788 --- /dev/null +++ b/.config/yadm/bootstrap.d/pure-prompt.sh##os.Linux @@ -0,0 +1,4 @@ +#!/bin/bash + +hash -r +npm install --global pure-prompt diff --git a/.config/yadm/bootstrap.d/yalc.sh##class.Work,os.Darwin b/.config/yadm/bootstrap.d/yalc.sh##class.Work,os.Darwin new file mode 100644 index 0000000..b2a0ea4 --- /dev/null +++ b/.config/yadm/bootstrap.d/yalc.sh##class.Work,os.Darwin @@ -0,0 +1,13 @@ +#!/bin/bash + +YARN=$(brew --prefix yarn)/bin/yarn + +if (command -v "$YARN" >/dev/null 2>&1); then + # Install yalc. Needed for local-publish + echo "Installing yalc..." + if ! $YARN global add yalc; then + echo "Failed to install yalc" >&2 + else + echo "Successfully installed yalc" + fi +fi \ No newline at end of file diff --git a/.gitignore b/.gitignore index 088076d..0bf39e6 100644 --- a/.gitignore +++ b/.gitignore @@ -47,6 +47,7 @@ __pycache__/ .rest-client .sonarlint .ssh +.stfolder .tldrc .Trash .vault-token