From 9ca96d7eb4c4370d50cde51acfacf26543428b54 Mon Sep 17 00:00:00 2001 From: larstvei Date: Sun, 18 Sep 2022 21:33:50 +0200 Subject: [PATCH] Fix directory tracking for fish & vterm --- modules/home.nix | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/modules/home.nix b/modules/home.nix index 848269e..94ec90b 100644 --- a/modules/home.nix +++ b/modules/home.nix @@ -47,6 +47,22 @@ enableFishIntegration = true; }; + programs.fish = { + enable = true; + + functions = { + track_directories = { + description = "For directory tracking in emacs vterm"; + onEvent = "fish_postexec"; + body = "printf \'\\e]51;A\'(pwd)\'\\e\\\\\'"; + }; + }; + + shellInit = '' + track_directories + ''; + }; + programs.git = { enable = true; userName = "larstvei";