Skip to content

Commit

Permalink
No more accidental set -eo
Browse files Browse the repository at this point in the history
  • Loading branch information
utensil committed Oct 2, 2024
1 parent fd96cb8 commit 615d5d9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
6 changes: 6 additions & 0 deletions alias.sh
Original file line number Diff line number Diff line change
@@ -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)"
7 changes: 2 additions & 5 deletions init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 615d5d9

Please sign in to comment.