lkjdsalkjdsalkjdsalkj

This commit is contained in:
2024-08-14 17:09:15 +02:00
parent 4c1398d0b0
commit b83bd8c2c0
7 changed files with 35 additions and 4 deletions

View File

@@ -32,6 +32,8 @@
programs.git.extraConfig.fetch.prune = true;
programs.git.extraConfig.fetch.prunetags = true;
programs.git.extraConfig.log.date = "iso";
/* programs.git.extraConfig.interactive.singleKey = true; */
programs.git.iniContent.init.defaultBranch = "main";
programs.git.ignores = [

View File

@@ -27,6 +27,27 @@
if command -v tldr >/dev/null; then
complete -F _command tldr
fi
destore() {
for dst in "$@"; do
test -L "$dst" || continue
# TODO: assert dst is in the store
src="$(realpath "$dst")"
if test -d "$src"; then
(set -x
rm -v "$dst"
cp -r --dereference --one-file-system "$src/" "$dst/" )
chmod -R +rw "$dst"
)
elif test -f "$src"; then
(set -x
rm -v "$dst"
cp -v "$src" "$dst"
chmod -v +rw "$dst"
)
fi
done
}
'';
imports = [ ../modules/jump.nix ];