Skip to content

Commit c637c05

Browse files
committed
chaange bashrc to record each command after execution
1 parent 8ec8f2b commit c637c05

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

dotfiles/bashrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ HISTFILESIZE=4000000
1818
# update the values of LINES and COLUMNS.
1919
shopt -s checkwinsize
2020

21+
# update history after each execution
22+
shopt -s histappend
23+
PROMPT_COMMAND="history -a;$PROMPT_COMMAND"
24+
2125
# make less more friendly for non-text input files, see lesspipe(1)
2226
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
2327

0 commit comments

Comments
 (0)