<html><head><style>body{font-family:Helvetica,Arial;font-size:13px}</style></head><body><div style="font-family:Helvetica,Arial;font-size:13px"><br>Chefdk is necessary for work, but outside of that it’s getting in the way. For example, right now I need to compile a python library, but it’s not working because the Chefdk is in my $PATH and whatever binaries chefdk ships with (m4 etc) are goofy.</div><div style="font-family:Helvetica,Arial;font-size:13px"><br></div><div style="font-family:Helvetica,Arial;font-size:13px">I’m using ZSH, which I really like, mostly because of ohmyzsh. Obviously the prompt (PS1) can be set conditionally (ie by the presence or absence of a `.git/`), but can the environment vars be set/unset conditionally as well? Specifically, I’d like to only have chefdk in $PATH when I’m cd’d into my ‘cookbooks’ (literal) directory (and it’s children, which are the actual cookbooks).</div><div style="font-family:Helvetica,Arial;font-size:13px"><br></div><div style="font-family:Helvetica,Arial;font-size:13px">I don’t want to remove chefdk from $PATH entirely, and then have to remember to put it back when I’m doing chef stuff.</div><div style="font-family:Helvetica,Arial;font-size:13px"><br></div><div style="font-family:Helvetica,Arial;font-size:13px">Thanks!</div><div style="font-family:Helvetica,Arial;font-size:13px"><br></div><div style="font-family:Helvetica,Arial;font-size:13px"><br></div><div style="font-family:Helvetica,Arial;font-size:13px"><br></div><div style="font-family:Helvetica,Arial;font-size:13px">* I’m on a Mac, but I don’t think that matters for this or ZSH in general.</div></body></html>