From 57142e46c68d8a847272ba0c6a79ceea093bcaf3 Mon Sep 17 00:00:00 2001 From: Steven Lu Date: Mon, 12 Aug 2013 11:09:57 -0400 Subject: [PATCH] This fixes the escapement issue with this sweet sweet thing --- zshrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zshrc b/zshrc index d008b4c86..c73847ca8 100644 --- a/zshrc +++ b/zshrc @@ -68,7 +68,7 @@ function zshaddhistory() { # do not do anything on common commands # do the needful - echo "$PWD; $COMMAND_STR; $TTY@$HOST@$(date +%s.%N)" >> ~/.zsh_enhanced_history + print -r "$PWD; $COMMAND_STR; $TTY@$HOST@$(date +%s.%N)" >> ~/.zsh_enhanced_history # rest is "default" zshaddhistory() print -Sr ${COMMAND_STR}