mirror of https://github.com/wlcx/home.git
Add ssh local config include
This commit is contained in:
parent
16071e4fb3
commit
e8c8f1baf7
|
@ -67,7 +67,10 @@ in {
|
||||||
|
|
||||||
fzf.enable = true;
|
fzf.enable = true;
|
||||||
|
|
||||||
ssh.enable = true;
|
ssh = {
|
||||||
|
enable = true;
|
||||||
|
includes = [ "~/.ssh/config.local" ];
|
||||||
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -38,7 +38,11 @@
|
||||||
init.defaultBranch = "main";
|
init.defaultBranch = "main";
|
||||||
};
|
};
|
||||||
includes = [
|
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";
|
path = "~/.gitconfig.work";
|
||||||
condition = "gitdir:~/work/";
|
condition = "gitdir:~/work/";
|
||||||
|
|
Loading…
Reference in New Issue