mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-10-01 09:40:35 +13:00
Implement ability to disable shell history
This commit is contained in:
parent
a6e9b78b09
commit
b54066bf89
1 changed files with 3 additions and 0 deletions
|
@ -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";
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue