From 8ca8ea5a41b69ce25f47da9459060a9b67e5fa70 Mon Sep 17 00:00:00 2001 From: Andrew Williams Date: Thu, 31 Jul 2025 08:27:14 +0100 Subject: [PATCH] [shell-common] Fix homebrew init --- shell-common/.config/shell-common/exports.sh | 2 +- shell-common/.config/shell-common/functions.sh | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/shell-common/.config/shell-common/exports.sh b/shell-common/.config/shell-common/exports.sh index a6858d6..0903ecd 100644 --- a/shell-common/.config/shell-common/exports.sh +++ b/shell-common/.config/shell-common/exports.sh @@ -41,5 +41,5 @@ fi if [[ $(uname) == "Darwin" ]]; then # Homebrew export HOMEBREW_NO_ENV_HINTS=1 - [ -d /opt/homebrew ] && eval $(/opt/homebrew/bin/brew shellenv) + [ -d /opt/homebrew ] && eval "$(/opt/homebrew/bin/brew shellenv)" fi diff --git a/shell-common/.config/shell-common/functions.sh b/shell-common/.config/shell-common/functions.sh index 86e05f2..b100083 100644 --- a/shell-common/.config/shell-common/functions.sh +++ b/shell-common/.config/shell-common/functions.sh @@ -10,7 +10,8 @@ function update-dotfiles() { cd "$prevdir" } -# Wrapper around ssh-add to ease usage and also ensure basic timeouts +# Wrapper around ssh-add to easily add SSH keys with a timeout +# Usage: add-sshkey [key_name] function add-sshkey() { TIMEOUT="2h" NAME=$1