Implement ability to disable shell history

This commit is contained in:
Christopher Schnick 2023-01-04 20:33:54 +01:00
parent a6e9b78b09
commit b54066bf89

View file

@ -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";
}