Created
November 5, 2021 15:50
-
-
Save msjyoo/fba20903aeb9c765e7c6a4681ac8448f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://sanctum.geek.nz/arabesque/better-bash-history/ | |
shopt -s histappend | |
shopt -s cmdhist | |
export HISTFILESIZE= | |
export HISTSIZE= | |
export HISTTIMEFORMAT='%F %T ' | |
export HISTFILE=~/.bash_history2 | |
export HISTCONTROL=ignoreboth | |
export HISTIGNORE='ls:bg:fg:history' | |
export PROMPT_COMMAND="history -a; $PROMPT_COMMAND" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment