-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds an initial local dev setup script
- Loading branch information
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/usr/bin/env bash | ||
|
||
################## | ||
# Just Setup # | ||
################## | ||
|
||
echo "Checking just setup" | ||
|
||
if ! command -v just > /dev/null 2>&1; then | ||
# create ~/bin | ||
mkdir -p ~/bin | ||
|
||
# download and extract just to ~/bin/just | ||
curl --proto '=https' --tlsv1.2 -sSf https://just.systems/install.sh | bash -s -- --to ~/bin | ||
|
||
# add `~/bin` to the paths that your shell searches for executables | ||
# this line should be added to your shells initialization file, | ||
# e.g. `~/.bashrc` or `~/.zshrc` | ||
export PATH="$PATH:$HOME/bin" | ||
|
||
echo "just has been installed" | ||
else | ||
echo "skipping just install, it already exists." | ||
fi |