We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e003271 commit 5e998c7Copy full SHA for 5e998c7
tmux/tmux.go
@@ -6,6 +6,7 @@ import (
6
"log"
7
"os"
8
"os/exec"
9
+ "path/filepath"
10
"strings"
11
12
"github.com/joshmedeski/sesh/config"
@@ -132,7 +133,8 @@ func execStartupScript(name string, scriptPath string) error {
132
133
134
func getStartupScript(sessionPath string, config *config.Config) string {
135
for _, script := range config.StartupScripts {
- if dir.FullPath(script.SessionPath) == sessionPath {
136
+ match, _ := filepath.Match(dir.FullPath(script.SessionPath), sessionPath)
137
+ if match {
138
return dir.FullPath(script.ScriptPath)
139
}
140
0 commit comments