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