feat: update PATH

This commit is contained in:
Ryan Yin
2023-12-22 21:03:25 +08:00
parent 2a42da46ad
commit ad86ed60dc
2 changed files with 8 additions and 5 deletions
+7 -4
View File
@@ -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"
'';
}