Permalink
Browse files

do not reaload the command history with every command

  • Loading branch information...
1 parent 5916f45 commit 1743fde28423ef3519acefcf0dca938b555ae7bf Patrick Byrne committed Mar 21, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/bash_profile.d/history.sh
View
2 src/bash_profile.d/history.sh
@@ -8,7 +8,7 @@ export HISTIGNORE="&:ls:[bf]g:exit:%[0-9]"
# history -a adds the command to history immediately
# history -n reloads the history
# PROMPT_COMMAND is performed immediately before showing a command-prompt, so after every command
-export PROMPT_COMMAND="history -a; history -n;$PROMPT_COMMAND"
+export PROMPT_COMMAND="history -a; $PROMPT_COMMAND"
# append each history entry from ALL terminals in realtime (not after session ending)

0 comments on commit 1743fde

Please sign in to comment.