Attach to first window from list-windows. (#13)

master
Adam Tucker 3 years ago committed by GitHub
parent e9ae967962
commit 9528b927cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -147,7 +147,7 @@ func (smug Smug) Start(config Config, windows []string) error {
return err
}
err = smug.tmux.Attach(ses+"0", os.Stdin, os.Stdout, os.Stderr)
err = smug.tmux.Attach(ses + windows[0], os.Stdin, os.Stdout, os.Stderr)
if err != nil {
return err
}

@ -27,7 +27,7 @@ var testTable = []struct {
"tmux list-windows -t ses: -F #{window_index}",
"tmux kill-window -t ses:ses:",
"tmux move-window -r",
"tmux attach -t ses:0",
"tmux attach -t ses:ses:",
},
[]string{
"tmux kill-session -t ses",
@ -69,7 +69,7 @@ var testTable = []struct {
"tmux list-windows -t ses: -F #{window_index}",
"tmux kill-window -t ses:ses:",
"tmux move-window -r",
"tmux attach -t ses:0",
"tmux attach -t ses:ses:",
},
[]string{
"/bin/sh -c stop1",

Loading…
Cancel
Save