@@ -29,19 +29,16 @@ Startup scripts are defined at two levels:
2929On startup, the predefined entrypoint scripts stored in ` /usr/libexec/workspace/startup.d/* `
3030are executed in lexicographical order to initialize the workspace environment.
3131
32- To add additional functionality during startup, mount your scripts to ` /entrypoint/* ` .
32+ To add additional functionality during startup, place executable scripts in
33+ ` ~/.ws/startup.d/ ` * (i.e. ` /home/kloud/.ws/startup.d ` )* .
34+ The directories are created automatically on startup.
35+
3336These scripts are executed as follows:
3437
3538- Only scripts with an executable file permission * (i.e. ` +x ` )* are considered.
3639- Executed in lexicographical order.
3740- Scripts are executed as the ` kloud ` user.
3841
39- ``` sh{2}
40- docker run \
41- -v /my-entrypoint-scripts:/entrypoint \
42- ghcr.io/kloudkit/workspace:v0.1.2
43- ```
44-
4542### Available Languages
4643
4744Feel free to write you entrypoint scripts in the language of your choice, considering it
@@ -67,10 +64,13 @@ Refer to the specific [documentation for `ws-cli`](/tools/ws-cli) for more detai
6764
6865Similar to entrypoint scripts, the workspace will load startup scripts for every new shell
6966session.
70- On shell startup, the predefined scripts stored in ` /usr/lib/ohmyzsh/custom/* ` are executed in
71- lexicographical order.
67+ On shell startup, the predefined scripts stored in ` /usr/lib/ohmyzsh/custom/* ` are executed
68+ in lexicographical order.
69+
70+ To add additional functionality during startup, place ` .zsh ` files in
71+ ` ~/.ws/session.d/ ` * (i.e. ` /home/kloud/.ws/session.d ` )* .
72+ The directories are created automatically on startup.
7273
73- To add additional functionality during startup, mount your scripts to ` ~/.session/*.zsh ` .
7474These scripts are executed as follows:
7575
7676- Both executable and not executable scripts are considered.
0 commit comments