From 615d5d9301a18e7d983f7d5eb43570700965efdc Mon Sep 17 00:00:00 2001 From: utensil Date: Thu, 3 Oct 2024 00:56:48 +0800 Subject: [PATCH] No more accidental `set -eo` --- alias.sh | 6 ++++++ init.sh | 7 ++----- 2 files changed, 8 insertions(+), 5 deletions(-) create mode 100755 alias.sh diff --git a/alias.sh b/alias.sh new file mode 100755 index 0000000..cfccc31 --- /dev/null +++ b/alias.sh @@ -0,0 +1,6 @@ +#!/bin/bash +# TODO: how to make this work without requiring a `source init.sh` +for recipe in `just --summary`; do + alias $recipe="just $recipe" +done +echo "✅ aliases initialized: $(just --summary)" diff --git a/init.sh b/init.sh index 4e925ae..77849e4 100755 --- a/init.sh +++ b/init.sh @@ -24,8 +24,5 @@ if ! command -v just &> /dev/null; then curl --proto '=https' --tlsv1.2 -sSf https://just.systems/install.sh | bash -s -- --to /usr/local/bin fi -# TODO: how to make this work without requiring a `source init.sh` -for recipe in `just --summary`; do - alias $recipe="just $recipe" -done -echo "✅ aliases initialized: $(just --summary)" +echo "✅ dependencies installed: bun, just" +echo "To initialize alias: source alias.sh"