Adjust darwin conditional in zsh

This commit is contained in:
Dave Gallant
2021-08-04 00:11:35 -04:00
parent f4038409e4
commit 452b302586
2 changed files with 25 additions and 24 deletions

View File

@@ -137,9 +137,10 @@ in
source $HOME/.zsh-work
'' + lib.optionals stdenv.isDarwin ''
export PATH="$(brew --prefix)/opt/gnu-tar/libexec/gnubin:$PATH"
export PATH="$(brew --prefix)/opt/gnu-sed/libexec/gnubin:$PATH"
if [[ "$OSTYPE" == "darwin"* ]]; then
export PATH="$(brew --prefix)/opt/gnu-tar/libexec/gnubin:$PATH"
export PATH="$(brew --prefix)/opt/gnu-sed/libexec/gnubin:$PATH"
fi
'';
shellAliases = {