diff --git a/bash-profile-barebone.sh b/bash-profile-barebone.sh index e3c030b5..8f72859d 100644 --- a/bash-profile-barebone.sh +++ b/bash-profile-barebone.sh @@ -6,6 +6,15 @@ export BASH_PATH=~/.bashrc # add sbin to path export PATH=$PATH:/sbin +# increase history size +export HISTSIZE=5000 +export HISTFILESIZE=10000 +export HISTTIMEFORMAT="[%F %T] " +# https://unix.stackexchange.com/questions/18212/bash-history-ignoredups-and-erasedups-setting-conflict-with-common-history +HISTCONTROL=ignoredups:erasedups +shopt -s histappend +PROMPT_COMMAND="history -n; history -w; history -c; history -r; $PROMPT_COMMAND" + # os flags export is_os_darwin_mac=0 && [ -d /Applications ] && export is_os_darwin_mac=1 export is_os_window=0 && [ -d /mnt/c/Users ] && export is_os_window=1