Skip to content

Commit 047cd9c

Browse files
committed
Fix environmental variable template
Fixes #124
1 parent 9e4af40 commit 047cd9c

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

examples/env-variables.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"before_script": "{MY_ENV_VAR}/test3.sh",
2+
"before_script": "${MY_ENV_VAR}/test3.sh",
33
"windows": [
44
{
55
"panes": [
@@ -8,24 +8,24 @@
88
"tail -F /var/log/syslog"
99
]
1010
}
11-
],
12-
"start_directory": "/var/log",
11+
],
12+
"start_directory": "/var/log",
1313
"window_name": "editor"
14-
},
14+
},
1515
{
1616
"panes": [
1717
{
1818
"shell_command": [
19-
"htop",
19+
"htop",
2020
"ls $PWD"
2121
]
2222
}
2323
],
24-
"window_name": "logging for {USER}",
24+
"window_name": "logging for {USER}",
2525
"automatic_rename": true
2626
}
27-
],
28-
"shell_command_before": "echo {PWD}",
29-
"start_directory": "{PWD}/test",
30-
"session_name": "session - {USER} ({MY_ENV_VAR})"
31-
}
27+
],
28+
"shell_command_before": "echo ${PWD}",
29+
"start_directory": "${PWD}/test",
30+
"session_name": "session - ${USER} (${MY_ENV_VAR})"
31+
}

examples/env-variables.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
start_directory: "{PWD}/test"
2-
shell_command_before: "echo {PWD}"
3-
before_script: "{MY_ENV_VAR}/test3.sh"
4-
session_name: session - {USER} ({MY_ENV_VAR})
1+
start_directory: "${PWD}/test"
2+
shell_command_before: "echo ${PWD}"
3+
before_script: "${MY_ENV_VAR}/test3.sh"
4+
session_name: session - ${USER} (${MY_ENV_VAR})
55
windows:
66
- window_name: editor
77
panes:
88
- shell_command:
99
- tail -F /var/log/syslog
1010
start_directory: /var/log
11-
- window_name: logging for {USER}
11+
- window_name: logging for ${USER}
1212
automatic_rename: true
1313
panes:
1414
- shell_command:

0 commit comments

Comments
 (0)