1
1
::: note
2
2
The following steps assume you're
3
3
using the [ default shell] [ zsh-mac ] on macOS, Zsh.
4
- Zsh uses the ` .zshenv ` file for configuring [ environment variables] [ zsh-files ] .
5
4
6
5
If you use another shell besides Zsh,
7
6
check out [ this tutorial on setting your PATH] [ other-path ] .
@@ -14,17 +13,17 @@ check out [this tutorial on setting your PATH][other-path].
14
13
15
14
1 . <h3 >Open or create the Zsh environment variable file</h3 >
16
15
17
- If it exists, open the Zsh environment variable file ` ~/.zshenv `
18
- in your preferred text editor.
19
- If it doesn't exist, create the ` ~/.zshenv ` file.
16
+ If it exists, open the [ Zsh environment variable file] [ zsh-files ]
17
+ ` ~/.zprofile ` in your preferred text editor.
18
+ If it doesn't exist, create the ` ~/.zprofile ` file.
20
19
21
20
1 . <h3 >Add the Flutter SDK bin to your path</h3 >
22
21
23
- At the end of your ` ~/.zshenv ` file,
22
+ At the end of your ` ~/.zprofile ` file,
24
23
use the built-in ` export ` command to update the ` PATH ` variable
25
24
to include the ` bin ` directory of your Flutter installation.
26
25
27
- Replace ` <path-to-sdk> ` with the path to your Flutter SDK install .
26
+ Replace ` <path-to-sdk> ` with the path to your Flutter SDK installation .
28
27
29
28
``` bash
30
29
export PATH=" <path-to-sdk>/bin:$PATH "
@@ -40,7 +39,7 @@ check out [this tutorial on setting your PATH][other-path].
40
39
41
40
1. <h3>Save your changes</h3>
42
41
43
- Save, then close, the `~/.zshenv ` file you edited.
42
+ Save, then close, the `~/.zprofile ` file you edited.
44
43
45
44
1. <h3>Apply your changes</h3>
46
45
0 commit comments