Files
ansible-shared/server/files/profile.d/bash_history.sh

16 lines
513 B
Bash

# Manange Bash History ~/.bash_history
# Unlimited HISTSIZE and HISTFILESIZE
export HISTSIZE=
export HISTFILESIZE=
# Don't put duplicate lines or lines starting with space in the history.
export HISTCONTROL=ignoreboth
# Ignore commands
# No, becuase then I can press up to run my last dir or ls command
#export HISTIGNORE="ls:dir:exit:sudo ls -Hhal"
# Time only shows up in 'history' command, and uses comments in actual ~/.bash_history file
# NO, default is fine...export HISTTIMEFORMAT="%Y-%m-%d %H:%M:%S "