Think before you speak, read before you think.

shell HISTCONTROL

执行命令行的时候,希望本条操作不保留历史命令,设置

echo $HISTCONTROL
export HISTCONTROL=ignoreboth

然后执行命令

 export token=12xx

history 应该不显示在首字符是空格的命令


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *