Files
kitty/tools/cmd/at/launch.go

27 lines
384 B
Go

// License: GPLv3 Copyright: 2023, Kovid Goyal, <kovid at kovidgoyal.net>
package at
import (
"fmt"
"os"
)
var _ = fmt.Print
func copy_local_env(copy_env bool) []string {
if copy_env {
return os.Environ()
}
return nil
}
func copy_local_cwd(copy_cwd string) string {
if copy_cwd == "current" {
if c, e := os.Getwd(); e == nil {
copy_cwd = c
}
}
return copy_cwd
}