Skip to content

Commit 91e7a56

Browse files
committed
Revert "feat: add SESH_SESSION_NAME environment variable"
This reverts commit 5a223f1.
1 parent 5a223f1 commit 91e7a56

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

README.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -273,10 +273,6 @@ startup_command = "nvim tmux.conf"
273273
preview_command = "bat --color=always ~/c/dotfiles/.config/tmux/tmux.conf"
274274
```
275275

276-
### Environment Variables
277-
278-
When creating a new tmux session, sesh now automatically sets the `SESH_SESSION_NAME` environment variable to the name of the session. This can be useful for scripts or programs that need to know the current session name.
279-
280276
### Listing Configurations
281277

282278
Session configurations will load by default if no flags are provided (the return after tmux sessions and before zoxide results). If you want to explicitly list them, you can use the `-c` flag.
@@ -312,4 +308,3 @@ Made with [contrib.rocks](https://contrib.rocks).
312308
<img alt="Star History Chart" src="https://api.star-history.com/svg?repos=joshmedeski/sesh&type=Date" />
313309
</picture>
314310
</a>
315-

tmux/tmux.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ func (t *RealTmux) SendKeys(targetPane string, keys string) (string, error) {
3939
}
4040

4141
func (t *RealTmux) NewSession(sessionName string, startDir string) (string, error) {
42-
return t.shell.Cmd("tmux", "new-session", "-d", "-s", sessionName, "-c", startDir, "-e", "SESH_SESSION_NAME="+sessionName)
42+
return t.shell.Cmd("tmux", "new-session", "-d", "-s", sessionName, "-c", startDir)
4343
}
4444

4545
func (t *RealTmux) CapturePane(targetSession string) (string, error) {

0 commit comments

Comments
 (0)