You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**Note:** To learn how to write startup scripts, see the [startup script section](#startup-script).
181
-
182
173
### Session Configuration
183
174
184
-
A startup script is a script that is run when a session is created. It is useful for setting up your environment for a given project. For example, you may want to run `npm run dev` to automatically start a dev server.
175
+
A startup command is a command that is run when a session is created. It is useful for setting up your environment for a given project. For example, you may want to run `npm run dev` to automatically start a dev server.
185
176
186
177
**Note:** If you use the `--command/-c` flag, then the startup script will not be run.
187
178
188
-
I like to use a script that opens nvim on session startup:
179
+
I like to use a command that opens nvim on session startup:
189
180
190
181
```toml
191
182
[[session]]
@@ -207,17 +198,6 @@ Session configurations will load by default if no flags are provided (the return
207
198
sesh list -c
208
199
```
209
200
210
-
### Startup Script
211
-
212
-
A startup script is a simple shell script that is run when a session is created. It is useful for setting up your environment for a given project. For example, you may want to run `npm run dev` to automatically start a dev server and open neovim in a split pane.
213
-
214
-
```sh
215
-
#!/usr/bin/env bash
216
-
tmux split-window -v -p 30 "npm run dev"
217
-
tmux select-pane -t :.+
218
-
tmux send-keys "nvim" Enter
219
-
```
220
-
221
201
Set the file as an executable and it will be run when you connect to the specified session.
0 commit comments