summaryrefslogtreecommitdiffstats
path: root/pkg/commands
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/commands')
-rw-r--r--pkg/commands/os.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkg/commands/os.go b/pkg/commands/os.go
index 1fb8e8da6..02d79a339 100644
--- a/pkg/commands/os.go
+++ b/pkg/commands/os.go
@@ -296,3 +296,8 @@ func (c *OSCommand) GetLazygitPath() string {
}
return filepath.ToSlash(ex)
}
+
+// RunCustomCommand returns the pointer to a custom command
+func (c *OSCommand) RunCustomCommand(command string) *exec.Cmd {
+ return c.PrepareSubProcess(c.Platform.shell, c.Platform.shellArg, command)
+}