Skip to content

Commit

Permalink
use kakexec in send and start
Browse files Browse the repository at this point in the history
  • Loading branch information
kkga committed Sep 18, 2021
1 parent bf700cc commit 25ce81e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
6 changes: 5 additions & 1 deletion kak/send.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ import (
)

func Send(kctx *Context, command string) error {
cmd := exec.Command("kak", "-p", kctx.Session.Name)
kakExec, err := kakExec()
if err != nil {
return err
}
cmd := exec.Command(kakExec, "-p", kctx.Session.Name)
// cmd.Stdout = os.Stdout
// cmd.Stderr = os.Stderr

Expand Down
7 changes: 6 additions & 1 deletion kak/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,12 @@ func Start(name string) (sessionName string, err error) {
}
}

cmd := exec.Command("kak", "-s", sessionName, "-d")
kakExec, err := kakExec()
if err != nil {
return
}

cmd := exec.Command(kakExec, "-s", sessionName, "-d")

err = cmd.Start()
if err != nil {
Expand Down

0 comments on commit 25ce81e

Please sign in to comment.