Fix directory tracking for fish & vterm

This commit is contained in:
larstvei 2022-09-18 21:33:50 +02:00
parent 746ea0f434
commit 9ca96d7eb4

View File

@ -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";