diff --git a/git/conf.d/delta.gitconfig b/git/conf.d/delta.gitconfig new file mode 100644 index 0000000..274649e --- /dev/null +++ b/git/conf.d/delta.gitconfig @@ -0,0 +1,26 @@ +# vim: ft=gitconfig +[core] + pager = delta + +[interactive] + diffFilter = delta --color-only + +[delta] + syntax-theme = "custom" + line-numbers = true + file-style = bold blue + file-decoration-style = none + hunk-header-style = line-number + hunk-header-decoration-style = ol gray + line-numbers-left-style = gray + plus-style = syntax "#09200D" + plus-emph-style = syntax "#195724" + minus-style = syntax "#220301" + minus-emph-style = syntax "#4A0702" + line-numbers-plus-style = "green" + line-numbers-minus-style = "red" + line-numbers-zero-style = "#343959" + line-numbers-left-format = " {nm:^1} : " + line-numbers-right-format = "{np:^1} │ " + line-numbers-right-style = "#41476F" + line-numbers-left-style = "#343959" diff --git a/gitconfig b/git/config similarity index 73% rename from gitconfig rename to git/config index ffc8b7a..65ae0b8 100644 --- a/gitconfig +++ b/git/config @@ -7,3 +7,6 @@ defaultBranch = main [fetch] prune = true + +[include] + path = ~/.config/git/delta.gitconfig diff --git a/install.sh b/install.sh index d5bba39..66dacc2 100755 --- a/install.sh +++ b/install.sh @@ -30,6 +30,8 @@ ln -sfr $BASE_PATH/tmux/config.conf $HOME/.tmux.conf ln -sfr $BASE_PATH/Xresources $HOME/.Xresources ln -sfr $BASE_PATH/picom.conf $HOME/.config/picom.conf ln -sfr $BASE_PATH/fzfrc $HOME/.config/fzfrc +ln -sfr $BASE_PATH/git/config $HOME/.gitconfig +ln -sfr $BASE_PATH/git/conf.d/ $HOME/.config/git mkdir -p $HOME/bin ln -sfr $BASE_PATH/scripts/tmuxs/main.sh $HOME/bin/tmuxs