From 858f791afd26dddcf822a596e55e0c9db5288eef Mon Sep 17 00:00:00 2001 From: Andrejus Date: Thu, 7 Mar 2024 22:25:26 +0000 Subject: [PATCH] feat: path and log improvements --- home/.profile | 7 +++++++ script/install.d/25-terraform.sh | 2 ++ script/install.d/70-cca.sh | 4 +++- script/install.d/80-neofetch.sh | 2 ++ 4 files changed, 14 insertions(+), 1 deletion(-) diff --git a/home/.profile b/home/.profile index 59aa768..169017e 100644 --- a/home/.profile +++ b/home/.profile @@ -21,6 +21,13 @@ fi mkdir -p ~/.local/bin 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 export WORKSPACE=${WORKSPACE:-"$HOME/Workspace"} mkdir -p "$WORKSPACE" diff --git a/script/install.d/25-terraform.sh b/script/install.d/25-terraform.sh index 5640013..38aeb95 100644 --- a/script/install.d/25-terraform.sh +++ b/script/install.d/25-terraform.sh @@ -13,3 +13,5 @@ if ! command -v "terraform" &>/dev/null; then brew install hashicorp/tap/terraform fi fi + +terraform --version diff --git a/script/install.d/70-cca.sh b/script/install.d/70-cca.sh index a6cf1d2..5609be1 100644 --- a/script/install.d/70-cca.sh +++ b/script/install.d/70-cca.sh @@ -6,7 +6,9 @@ # 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 + else + echo "Colour Contrast Analyser (CCA) is already installed." fi fi diff --git a/script/install.d/80-neofetch.sh b/script/install.d/80-neofetch.sh index 8c9662e..f97c76f 100644 --- a/script/install.d/80-neofetch.sh +++ b/script/install.d/80-neofetch.sh @@ -12,3 +12,5 @@ if ! command -v "neofetch" &>/dev/null; then brew install neofetch fi fi + +echo "$(neofetch --version)"