mirror of
https://github.com/xpipe-io/xpipe.git
synced 2026-08-13 04:51:03 +00:00
Implement ability to disable shell history
This commit is contained in:
@@ -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";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user