parent
5e83e87af1
commit
9cca2a5850
@ -5,7 +5,26 @@
|
|||||||
email,
|
email,
|
||||||
devEnvironment,
|
devEnvironment,
|
||||||
...
|
...
|
||||||
}: {
|
}: let
|
||||||
|
queryWatchman = with pkgs; let
|
||||||
|
# TODO: this is a perl script which needs $LOCALE_ARCHIVE.
|
||||||
|
# As of writing, I have this in my ~/.bashrc:
|
||||||
|
# export LOCALE_ARCHIVE=/usr/lib/locale/locale-archive
|
||||||
|
fsmon =
|
||||||
|
runCommand "fsmonitor-watchman"
|
||||||
|
{
|
||||||
|
src = "${git}/share/git-core/templates/hooks/fsmonitor-watchman.sample";
|
||||||
|
buildInputs = [gnused];
|
||||||
|
} ''
|
||||||
|
sed -e 's@^#!/usr/bin/perl@#!${perl}@' $src > $out
|
||||||
|
chmod +x $out
|
||||||
|
'';
|
||||||
|
in
|
||||||
|
writeShellScript "query-watchman" ''
|
||||||
|
export PATH=${pkgs.watchman}/bin:$PATH
|
||||||
|
exec ${fsmon.outPath} "$@"
|
||||||
|
'';
|
||||||
|
in {
|
||||||
home = {
|
home = {
|
||||||
inherit stateVersion;
|
inherit stateVersion;
|
||||||
|
|
||||||
@ -75,6 +94,8 @@
|
|||||||
userName = "Motiejus Jakštys";
|
userName = "Motiejus Jakštys";
|
||||||
aliases.yolo = "commit --amend --no-edit -a";
|
aliases.yolo = "commit --amend --no-edit -a";
|
||||||
extraConfig = {
|
extraConfig = {
|
||||||
|
core.fsmonitor = queryWatchman.outPath;
|
||||||
|
core.untrackedcache = true;
|
||||||
rerere.enabled = true;
|
rerere.enabled = true;
|
||||||
pull.ff = "only";
|
pull.ff = "only";
|
||||||
merge.conflictstyle = "diff3";
|
merge.conflictstyle = "diff3";
|
||||||
|
Loading…
Reference in New Issue
Block a user