来源:https://stackoverflow.com/questions/70787524/how-can-i-point-the-history-command-to-an-alternate-file
修改环境变量 HISTFILE
HISTFILE