This adds the host to the enhanced history in preparation for auto-chronological-merging of my command history

This commit is contained in:
Steven Lu 2013-08-08 22:23:06 -04:00
commit e82a08dc37

2
zshrc
View file

@ -68,7 +68,7 @@ function zshaddhistory() {
# do not do anything on common commands
# do the needful
echo "$PWD; $COMMAND_STR; $TTY@$(date +%s.%N)" >> ~/.zsh_enhanced_history
echo "$PWD; $COMMAND_STR; $TTY@$HOST@$(date +%s.%N)" >> ~/.zsh_enhanced_history
# rest is "default" zshaddhistory()
print -Sr ${COMMAND_STR}