File tree Expand file tree Collapse file tree 3 files changed +44
-2
lines changed Expand file tree Collapse file tree 3 files changed +44
-2
lines changed Original file line number Diff line number Diff line change 162
162
.. literalinclude :: ../examples/start-directory.json
163
163
:language: json
164
164
165
- Environment variables
166
- ---------------------
165
+ Environment variable replacing
166
+ ------------------------------
167
167
168
168
tmuxp will replace environment variables wrapped in curly brackets
169
169
for the following variables:
@@ -206,6 +206,23 @@ JSON
206
206
.. literalinclude :: ../examples/env-variables.json
207
207
:language: json
208
208
209
+ Environment variables
210
+ ---------------------
211
+
212
+ tmuxp will set session environment variables.
213
+
214
+ YAML
215
+ ~~~~
216
+
217
+ .. literalinclude :: ../examples/session-environment.yaml
218
+ :language: yaml
219
+
220
+ JSON
221
+ ~~~~
222
+
223
+ .. literalinclude :: ../examples/session-environment.json
224
+ :language: json
225
+
209
226
Focusing
210
227
--------
211
228
Original file line number Diff line number Diff line change
1
+ {
2
+ "environment" : {
3
+ "EDITOR" : " /usr/bin/vim" ,
4
+ "HOME" : " /tmp/hm" ,
5
+ },
6
+ "windows" : [
7
+ {
8
+ "panes" : [
9
+ null ,
10
+ ],
11
+ "window_name" : " Blank pane test"
12
+ },
13
+ ],
14
+ "session_name" : " Environment variables test"
15
+ }
Original file line number Diff line number Diff line change
1
+ session_name : Environment variables test
2
+ environment :
3
+ EDITOR : /usr/bin/vim
4
+ HOME : /tmp/hm
5
+ windows :
6
+ # Emptiness will simply open a blank pane, if no shell_command_before.
7
+ # All these are equivalent
8
+ - window_name : Blank pane test
9
+ panes :
10
+ -
You can’t perform that action at this time.
0 commit comments