From b527d57ba74d4f489b6e51609e491ac6f27b0734 Mon Sep 17 00:00:00 2001 From: larstvei Date: Sun, 9 Oct 2022 23:15:07 +0200 Subject: [PATCH] Fix directory tracking interfering with projectile (Emacs) Tracking directories is there in order for shells inside Emacs to pick up on what the current directory is. This does some weird printing that I don't understand, and interferes when Emacs runs shell commands and parses the output. This completely brakes projectile mode in Emacs. The fix was apparently to not attempt to track the directory if the terminal is too dumb. --- modules/home.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/home.nix b/modules/home.nix index 4d75dbc..2c62426 100644 --- a/modules/home.nix +++ b/modules/home.nix @@ -114,7 +114,9 @@ }; shellInit = '' - track_directories + if test "$TERM" != "dumb" + track_directories + end ''; };