From 2ec8cfe6d7a00bb10df5e420ef2c7dd5461cac89 Mon Sep 17 00:00:00 2001 From: Sam Willcocks Date: Fri, 14 Jan 2022 16:19:05 +0000 Subject: [PATCH] Fix gitincludes, add work specific include --- home/default.nix | 1 + home/git.nix | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/home/default.nix b/home/default.nix index c093fa5..aa29a4f 100644 --- a/home/default.nix +++ b/home/default.nix @@ -44,6 +44,7 @@ in { git_branch.format = "[$symbol$branch]($style) "; python.format = "[py \${pyenv_prefix}(\${version} )(\\($virtualenv\\) )]($style)"; nodejs.format = "[js ($version )]($style)"; + nix_shell.format = "[nix $state( \\($name\\))]($style) "; }; }; diff --git a/home/git.nix b/home/git.nix index 325a3e0..32527bc 100644 --- a/home/git.nix +++ b/home/git.nix @@ -35,7 +35,10 @@ branch.sort = "-committerdate"; log.showSignature = true; push.default = "current"; - include.path = "~/.gitconfig.local"; }; + includes = [ + { path = "~/.gitconfig.local"; } + { path = "~/.gitconfig.work"; condition = "gitdir:~/work/"; } + ]; }; }