From ad86ed60dcd05c4d2cc292ecced4f948396eb80a Mon Sep 17 00:00:00 2001 From: Ryan Yin Date: Fri, 22 Dec 2023 21:03:25 +0800 Subject: [PATCH] feat: update PATH --- home/base/server/shells/default.nix | 2 +- home/darwin/shell.nix | 11 +++++++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/home/base/server/shells/default.nix b/home/base/server/shells/default.nix index 635f6862..8bbc1cb1 100644 --- a/home/base/server/shells/default.nix +++ b/home/base/server/shells/default.nix @@ -19,7 +19,7 @@ in { enable = true; enableCompletion = true; bashrcExtra = '' - export PATH="$PATH:$HOME/bin:$HOME/.local/bin:$HOME/go/bin" + export PATH="$HOME/.local/bin:$HOME/go/bin:$PATH" ''; }; } diff --git a/home/darwin/shell.nix b/home/darwin/shell.nix index c4b4f08a..c47a304d 100644 --- a/home/darwin/shell.nix +++ b/home/darwin/shell.nix @@ -1,10 +1,13 @@ _: { - # add homebrew into PATH - + # Homebrew's default install location: + # /opt/homebrew for Apple Silicon + # /usr/local for macOS Intel + # The prefix /opt/homebrew was chosen to allow installations + # in /opt/homebrew for Apple Silicon and /usr/local for Rosetta 2 to coexist and use bottles. programs.bash.bashrcExtra = '' - export PATH="/opt/homebrew/bin:$PATH" + export PATH="/opt/homebrew/bin:/usr/local/bin:$PATH" ''; programs.zsh.envExtra = '' - export PATH="/opt/homebrew/bin:$PATH" + export PATH="/opt/homebrew/bin:/usr/local/bin:$PATH" ''; }