[shell-common] Fix homebrew init

This commit is contained in:
2025-07-31 08:27:14 +01:00
parent 08dde00b3a
commit 8ca8ea5a41
2 changed files with 3 additions and 2 deletions

View File

@@ -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

View File

@@ -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