mirror of
https://github.com/nikdoof/dotfiles.git
synced 2026-01-30 02:48:15 +00:00
[macos] Fix brew setup
This commit is contained in:
5
macos/.config/shell-common/01_macos_brew.sh
Normal file
5
macos/.config/shell-common/01_macos_brew.sh
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
# Configure Homebrew environment
|
||||||
|
if [ -x /opt/homebrew/bin/brew ]; then
|
||||||
|
export HOMEBREW_NO_ENV_HINTS=1
|
||||||
|
eval "$(/opt/homebrew/bin/brew shellenv)"
|
||||||
|
fi
|
||||||
@@ -1,11 +1,5 @@
|
|||||||
# shellcheck shell=bash
|
# shellcheck shell=bash
|
||||||
|
|
||||||
# Configure Homebrew environment
|
|
||||||
if [ -d /opt/homebrew ]; then
|
|
||||||
export HOMEBREW_NO_ENV_HINTS=1
|
|
||||||
eval "$(/opt/homebrew/bin/brew shellenv)"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Flushes the DNS cache on macOS
|
# Flushes the DNS cache on macOS
|
||||||
function flushdns() {
|
function flushdns() {
|
||||||
if [[ $(uname) == "Darwin" ]]; then
|
if [[ $(uname) == "Darwin" ]]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user