Skip to content

Commit e370363

Browse files
rubiinjoshmedeski
authored andcommitted
readme: remove startup script instances
As startup script was dropped, the readme is now updated to drop any references
1 parent 475b396 commit e370363

File tree

1 file changed

+2
-22
lines changed

1 file changed

+2
-22
lines changed

README.md

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -170,22 +170,13 @@ The default session can be configured to run a command when connecting to a sess
170170
startup_command = "nvim -c ':Telescope find_files'"
171171
```
172172

173-
You can also use the `startup_script` property to run a script when connecting to a session.
174-
175-
```toml
176-
[default_session]
177-
startup_script = "nvim -c ':Telescope find_files'"
178-
```
179-
180-
**Note:** To learn how to write startup scripts, see the [startup script section](#startup-script).
181-
182173
### Session Configuration
183174

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.
185176

186177
**Note:** If you use the `--command/-c` flag, then the startup script will not be run.
187178

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:
189180

190181
```toml
191182
[[session]]
@@ -207,17 +198,6 @@ Session configurations will load by default if no flags are provided (the return
207198
sesh list -c
208199
```
209200

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-
221201
Set the file as an executable and it will be run when you connect to the specified session.
222202

223203
## Background (the "t" script)

0 commit comments

Comments
 (0)