Set the maximum number of history entries saved in the history
list. If set to zero, any existing history entries are deleted
and no new entries are saved. If set to a value less than zero,
the number of history entries is not limited. By default, the
number of history entries is set to the value of the
shell variable. If an attempt is made to set
history-size to a
non-numeric value, the maximum number of history entries will be
set to 500.
So if you set
HISTSIZE, don't set
.inputrc. The readline library (for which
.inputrc is the configuration) does not care what you set
HISTFILESIZE is the size that the history file (
$HISTFILE) is truncated to when a
bash shell session exits (by
bash, not by the readline library).
According to the question "Is there a way to set the size of the history list in bash to more than 5000 lines?", the
history-size setting of the readline library seems to override the
HISTSIZE setting in the shell, if both are set.
nocaseglob shell option is not the same as the
completion-ignore-case setting in
.inputrc. The shell option is about filename globbing behaviour, while the readline setting has to do with filename completion (when you press Tab on the command line).
.inputrc settings affect all programs that uses the readline library, not just
bash may be started without readline support by invoking it with the
Note that both
HISTFILESIZE are shell variables, not environment variables, and therefore do not need to be exported.