Add function in fish to quickly make a nix .envrc

This commit is contained in:
Antoine Vaure 2024-08-12 16:58:09 +02:00
parent 04aeac8397
commit 5450f73b5a

View file

@ -79,6 +79,10 @@
echo -n -s (set_color $color_cwd) (prompt_pwd) $normal (fish_vcs_prompt) \
(set_color -i yellow) $direnv_status $normal " "$prompt_status " "$suffix " "
'';
# run $argv when a file tracked by git is updated.
gitentr.body = ''
${pkgs.git}/bin/git ls-tree -r HEAD --name-only | ${pkgs.entr}/bin/entr $argv
'';
};
shellAliases = {