Skip to content

Commit 27e1058

Browse files
committed
add workspace provided envars when not presents in current environ
Signed-off-by: Tin Lai <[email protected]>
1 parent 091e691 commit 27e1058

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/tmuxp/workspace/loader.py

+3
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,9 @@ def expand(
157157
if any(val.startswith(a) for a in [".", "./"]):
158158
val = str(cwd / val)
159159
workspace_dict["environment"][key] = val
160+
if key not in os.environ:
161+
# using user provided environment variable as default vars
162+
os.environ[key] = val
160163
if "global_options" in workspace_dict:
161164
for key in workspace_dict["global_options"]:
162165
val = workspace_dict["global_options"][key]

0 commit comments

Comments
 (0)