mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-21 14:45:42 +08:00
Remove read history
This was undocumented, not all that useful and potentially unwanted. In particular it means that things like mysql -p(read) will still keep the password in history. Also it allows us to simply implement asking for the history deletion term. See #5791.
This commit is contained in:
parent
fc99d6c7af
commit
51fcb79d96
@ -202,10 +202,8 @@ static int read_interactive(parser_t &parser, wcstring &buff, int nchars, bool s
|
||||
const wchar_t *commandline) {
|
||||
int exit_res = STATUS_CMD_OK;
|
||||
|
||||
const auto &vars = parser.vars();
|
||||
wcstring read_history_ID = history_session_id(vars);
|
||||
if (!read_history_ID.empty()) read_history_ID += L"_read";
|
||||
reader_push(parser, read_history_ID);
|
||||
// Don't keep history
|
||||
reader_push(parser, L"");
|
||||
|
||||
reader_set_left_prompt(prompt);
|
||||
reader_set_right_prompt(right_prompt);
|
||||
|
Loading…
x
Reference in New Issue
Block a user