Skip to content

Commit

Permalink
bash history: keep space-prefixed cmds
Browse files Browse the repository at this point in the history
  • Loading branch information
paulirish committed Jan 23, 2020
1 parent 4e1de7f commit c6ba8e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .bash_profile
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export HISTTIMEFORMAT='%F %T '

# keep history up to date, across sessions, in realtime
# http://unix.stackexchange.com/a/48113
export HISTCONTROL="erasedups:ignoreboth" # no duplicate entries
export HISTCONTROL="ignoredups" # no duplicate entries, but keep space-prefixed commands
export HISTSIZE=100000 # big big history (default is 500)
export HISTFILESIZE=$HISTSIZE # big big history
type shopt &> /dev/null && shopt -s histappend # append to history, don't overwrite it
Expand Down

0 comments on commit c6ba8e9

Please sign in to comment.