mirror of
https://github.com/nikdoof/dotfiles.git
synced 2025-12-13 01:32:30 +00:00
[shell-common] Fix homebrew init
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user