Skip to content

Commit

Permalink
extra to common deltaTheme
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianHicks committed Apr 27, 2020
1 parent 147e4b9 commit 2e3c440
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions dotfiles/git.nix
@@ -1,6 +1,7 @@
{ pkgs, ... }:

{
let
deltaTheme = ''--theme=1337 --plus-color="#32473d" --minus-color="#643632"'';
in {
programs.git = {
enable = true;

Expand Down Expand Up @@ -37,12 +38,9 @@
github.user = "BrianHicks";

# delta
core.pager = ''
${pkgs.gitAndTools.delta}/bin/delta --theme=1337 --plus-color="#32473d" --minus-color="#643632"
'';
interactive.diffFilter = ''
${pkgs.gitAndTools.delta}/bin/delta --color-only --theme=1337 --plus-color="#32473d" --minus-color="#643632"
'';
core.pager = "${pkgs.gitAndTools.delta}/bin/delta ${deltaTheme}";
interactive.diffFilter =
"${pkgs.gitAndTools.delta}/bin/delta --color-only ${deltaTheme}";
};

ignores = [
Expand Down

0 comments on commit 2e3c440

Please sign in to comment.