mirror of
https://github.com/nikdoof/dotfiles.git
synced 2025-12-17 21:09:25 +00:00
[shell-common] Fix homebrew init
This commit is contained in:
@@ -41,5 +41,5 @@ fi
|
|||||||
if [[ $(uname) == "Darwin" ]]; then
|
if [[ $(uname) == "Darwin" ]]; then
|
||||||
# Homebrew
|
# Homebrew
|
||||||
export HOMEBREW_NO_ENV_HINTS=1
|
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
|
fi
|
||||||
|
|||||||
@@ -10,7 +10,8 @@ function update-dotfiles() {
|
|||||||
cd "$prevdir"
|
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() {
|
function add-sshkey() {
|
||||||
TIMEOUT="2h"
|
TIMEOUT="2h"
|
||||||
NAME=$1
|
NAME=$1
|
||||||
|
|||||||
Reference in New Issue
Block a user