Add ssh local config include

This commit is contained in:
Sam W 2022-03-09 13:03:32 +00:00
parent 16071e4fb3
commit e8c8f1baf7
2 changed files with 9 additions and 2 deletions

View File

@ -67,7 +67,10 @@ in {
fzf.enable = true;
ssh.enable = true;
ssh = {
enable = true;
includes = [ "~/.ssh/config.local" ];
};
};
}

View File

@ -38,7 +38,11 @@
init.defaultBranch = "main";
};
includes = [
{ path = "~/.gitconfig.local"; }
# Always include local gitconfig if it's there
{
path = "~/.gitconfig.local";
}
# Include work gitconfig if we're somewhere in ~/work
{
path = "~/.gitconfig.work";
condition = "gitdir:~/work/";