2020 https://www.reddit.com/r/NixOS/comments/gf3ecs/git_command_autocompletion_with_homemanager/ export XDG_DATA_DIRS=$HOME/.nix-profile/share:$XDG_DATA_DIRS in my .profile I got my git autocomple back.