mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-23 16:51:16 -03:00
don't import bash history if not default fish hist
Don't import the bash history if the user has specified that a non-default fish history file should be used. Also, rename the var that specifies the fish history session ID from `FISH_HISTFILE` to `FISH_HISTORY`. Fixes #4172
This commit is contained in:
@@ -614,7 +614,7 @@ static void react_to_variable_change(const wcstring &key) {
|
||||
invalidate_termsize(true); // force fish to update its idea of the terminal size plus vars
|
||||
} else if (key == L"FISH_READ_BYTE_LIMIT") {
|
||||
env_set_read_limit();
|
||||
} else if (key == L"FISH_HISTFILE") {
|
||||
} else if (key == L"FISH_HISTORY") {
|
||||
history_destroy();
|
||||
reader_push(history_session_id().c_str());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user