История Bash переносится на самую раннюю и самую старую команду

Только сегодня в список рассылки Buildroot был отправлен патч, добавляющий пакет для nghttp2. Он еще не объединен из-за мелких деталей, но в целом работает нормально:https://patchwork.ozlabs.org/patch/945578/

0
06.08.2020, 07:09
1 ответ

Как видно из Справочного руководства Bash , вы можете использоватьHISTSIZE

HISTSIZE

The maximum number of commands to remember on the history list. If the value is 0, commands are not saved in the history list. Numeric values less than zero result in every command being saved on the history list (there is no limit). The shell sets the default value to 500 after reading any startup files.

с помощью

HISTSIZE=(number < 0)

иHISTFILESIZE

HISTFILESIZE

The maximum number of lines contained in the history file. When this variable is assigned a value, the history file is truncated, if necessary, to contain no more than that number of lines by removing the oldest entries. The history file is also truncated to this size after writing it when a shell exits. If the value is 0, the history file is truncated to zero size. Non-numeric values and numeric values less than zero inhibit truncation. The shell sets the default value to the value of HISTSIZE after reading any startup files.

с помощью

HISTFILESIZE=(number < 0)
0
18.03.2021, 23:14

Теги

Похожие вопросы