feat: path and log improvements

This commit is contained in:
2024-03-07 22:25:26 +00:00
parent 7d6d8ae90a
commit 858f791afd
4 changed files with 14 additions and 1 deletions

View File

@@ -21,6 +21,13 @@ fi
mkdir -p ~/.local/bin mkdir -p ~/.local/bin
unset local_bin_path unset local_bin_path
# homebrew
brew_path="/opt/homebrew/bin/brew"
if [ -x "$brew_path" ]; then
eval "$(/opt/homebrew/bin/brew shellenv)"
fi
unset brew_path
# workspace # workspace
export WORKSPACE=${WORKSPACE:-"$HOME/Workspace"} export WORKSPACE=${WORKSPACE:-"$HOME/Workspace"}
mkdir -p "$WORKSPACE" mkdir -p "$WORKSPACE"

View File

@@ -13,3 +13,5 @@ if ! command -v "terraform" &>/dev/null; then
brew install hashicorp/tap/terraform brew install hashicorp/tap/terraform
fi fi
fi fi
terraform --version

View File

@@ -6,7 +6,9 @@
# #
if [[ "$OSTYPE" == "darwin"* ]]; then if [[ "$OSTYPE" == "darwin"* ]]; then
if ! command -v cca &> /dev/null; then if ! brew list --cask colour-contrast-analyser &> /dev/null; then
brew install --cask colour-contrast-analyser brew install --cask colour-contrast-analyser
else
echo "Colour Contrast Analyser (CCA) is already installed."
fi fi
fi fi

View File

@@ -12,3 +12,5 @@ if ! command -v "neofetch" &>/dev/null; then
brew install neofetch brew install neofetch
fi fi
fi fi
echo "$(neofetch --version)"