<p>I had the same problem.  Try creating a file named .bash_profile in your user directory (/Users/joblogs/.bash_profile) and add the given line as it is written.  Restart the terminal and give it a go.</p>

CC BY-SA 4.0
2021-07-24T07:11:25.353Z
this does't work, maybe because i am using zsh
codeasasin
CC BY-SA 4.0
2021-07-23T20:20:21.267Z
2021-07-23T20:20:21.267Z
idunnknowman
<p>So the following worked. Go to the following file:</p>
<pre><code>/etc/zprofile
</code></pre>
<p>and add the following line:</p>
<pre><code>. /Users/thanhdanhphan/.nix-profile/etc/profile.d/nix.sh
</code></pre>
<p>Close all your terminals and re-open a new one, try:</p>
<pre><code>nix --version
</code></pre>
<p>and it should give you the latest nix version e.g (at the time of writing):</p>
<pre><code>nix (Nix) 2.3.14
</code></pre>

CC BY-SA 4.0
2021-07-24T07:33:14.587Z
2021-07-24T07:33:14.587Z
codeasasin
<p>I am trying to install nix on my local iMac. I am following the following <a href="https://docs.plutus-community.com/docs/setup/MacOS.html" rel="nofollow noreferrer">Guide</a> to do that.  After executing</p>
<pre><code>sh &lt;(curl -L https://nixos.org/nix/install) --darwin-use-unencrypted-nix-store-volume
</code></pre>
<p>I get &quot;Installing finished!&quot; and I am requested to add the line:</p>
<pre><code>. /Users/joeblogs/.nix-profile/etc/profile.d/nix.sh
</code></pre>
<p>&quot;to your shell profile (e.g. ~/.profile).&quot;</p>
<p>I am using a Mac (with zsh) and so what file is this shell profile referring to? For instance, i do not have a ~/.profile.</p>

CC BY-SA 4.0
2021-07-25T13:26:03.033Z
You'd have an easier time installing on a Linux machine. Try Linux mint.
jnprogrammer
<nix><macos>
Installing nix: where is shell profile - MacOS using zsh?
# Installing nix: where is shell profile - MacOS using zsh?

(Asked by: username_0 on 2021-07-23)

I am trying to install nix on my local iMac. I am following the following Guide to do that.  After executing
sh <(curl -L https://nixos.org/nix/install) --darwin-use-unencrypted-nix-store-volume

I get "Installing finished!" and I am requested to add the line:
. /Users/joeblogs/.nix-profile/etc/profile.d/nix.sh

"to your shell profile (e.g. ~/.profile)."
I am using a Mac (with zsh) and so what file is this shell profile referring to? For instance, i do not have a ~/.profile.

**Tags:** nix, macos
> **Comments:**
> **username_1**: You'd have an easier time installing on a Linux machine. Try Linux mint.  

---

## 2 answers

### Answer by username_0 on 2021-07-24. Score: 0 | Accepted answer

So the following worked. Go to the following file:
/etc/zprofile

and add the following line:
. /Users/thanhdanhphan/.nix-profile/etc/profile.d/nix.sh

Close all your terminals and re-open a new one, try:
nix --version

and it should give you the latest nix version e.g (at the time of writing):
nix (Nix) 2.3.14


---

### Answer by username_2 on 2021-07-23. Score: 0

I had the same problem. Try creating a file named .bash\_profile in your user directory (/Users/joblogs/.bash\_profile) and add the given line as it is written. Restart the terminal and give it a go.

> **Comments:**
> **username_0**: this does't work, maybe because i am using zsh  

---

