Skip to content

Commit f615e75

Browse files
committed
Docs: More docs for before_script example.
1 parent 5a4e61e commit f615e75

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

doc/examples.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,21 +260,23 @@ A successful script will exit with a status of ``0``.
260260
You can use this for things like bootstrapping ruby / python environments
261261
for a project (or checking to verify their installation).
262262

263+
Important: the script file must be chmod executable ``+x`` or ``755``.
264+
263265
Run a python script (and check for it's return code), the script is
264266
*relative to the ``.tmuxp.yaml``'s root* (Windows and panes omitted in
265267
this example):
266268

267269
.. code-block:: yaml
268270
269271
session_name: my session
270-
before_script: bootstrap.py
272+
before_script: ./bootstrap.py
271273
# ... the rest of your config
272274
273275
.. code-block:: json
274276
275277
{
276278
"session_name": "my session",
277-
"before_script": "bootstrap.py"
279+
"before_script": "./bootstrap.py"
278280
}
279281
280282
Run a shell script + check for return code on an absolute path. (Windows

0 commit comments

Comments
 (0)