From b7c36ad4cd6b761675d5062d72bd470b93d8f4f8 Mon Sep 17 00:00:00 2001 From: rupa Date: Tue, 24 Dec 2013 20:42:25 -0500 Subject: [PATCH] don't track HOME --- z_prompt_command.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/z_prompt_command.c b/z_prompt_command.c index 394b836..de0b013 100644 --- a/z_prompt_command.c +++ b/z_prompt_command.c @@ -23,6 +23,9 @@ int main() { if (getcwd(cwd, sizeof(cwd)) == NULL) return EXIT_FAILURE; + // Don't track $HOME + if (strcmp(cwd, getenv("HOME")) == 0) return EXIT_SUCCESS; + _Z_DATA = getenv("_Z_DATA"); if( _Z_DATA == NULL ) { sprintf(datafile, "%s/.z", getenv("HOME"));