From b54066bf8963e5289ca60ef4cf251eb5c29a8794 Mon Sep 17 00:00:00 2001 From: Christopher Schnick Date: Wed, 4 Jan 2023 20:33:54 +0100 Subject: [PATCH] Implement ability to disable shell history --- core/src/main/java/io/xpipe/core/process/ShellType.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/src/main/java/io/xpipe/core/process/ShellType.java b/core/src/main/java/io/xpipe/core/process/ShellType.java index f7f8abe4..d24c0a2a 100644 --- a/core/src/main/java/io/xpipe/core/process/ShellType.java +++ b/core/src/main/java/io/xpipe/core/process/ShellType.java @@ -3,6 +3,7 @@ package io.xpipe.core.process; import com.fasterxml.jackson.annotation.JsonTypeInfo; import io.xpipe.core.charsetter.NewLine; +import java.io.IOException; import java.nio.charset.Charset; import java.util.List; import java.util.Map; @@ -32,6 +33,8 @@ public interface ShellType { .collect(Collectors.joining(" ")); } + void disableHistory(ShellProcessControl pc) throws Exception; + default String getExitCommand() { return "exit"; }