Skip to content

Commit 71bb16c

Browse files
author
Katie Horne
authored
chore: add info about setting env vars in .profile (coder#876)
1 parent e11996b commit 71bb16c

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

workspaces/personalization.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ workspace or turn it on.
9898

9999
At startup, Coder clones your dotfiles repository into `~/dotfiles`. If there's
100100
an executable `~/dotfiles/install.sh` present, Coder executes it. If not, all
101-
dot-prefixed files are symlinked to your home directory.
101+
dot-prefixed files are symlinked to your home directory.
102102

103103
> You **must** mark `install.sh` as executable before committing it to your
104104
> dotfiles repo.
@@ -111,3 +111,14 @@ You can provide a link to your dotfiles repo that's hosted with the Git provider
111111
of your choice under [User preferences](preferences.md):
112112

113113
![Dotfiles preferences](../assets/workspaces/dotfiles-preferences.png)
114+
115+
### Setting environment variables
116+
117+
If you'd like to set environment variables in your workspace so that they're
118+
available to Code Web (VS Code) running in your workspace and persist across
119+
workspace builds, you can do so by:
120+
121+
1. Setting the environment variables in `.profile`;
122+
1. Including `.profile` in the dotfiles repo you're using with Coder.
123+
124+
Code Web will access the environment variables you set when you launch the IDE.

0 commit comments

Comments
 (0)