diff --git a/users/profiles/git/attributes b/users/profiles/git/attributes new file mode 100644 index 00000000..a1bd92e5 --- /dev/null +++ b/users/profiles/git/attributes @@ -0,0 +1,3 @@ +*.lisp diff=lisp +*.el diff=lisp +*.org diff=org diff --git a/users/profiles/git/config b/users/profiles/git/config new file mode 100644 index 00000000..32869dc5 --- /dev/null +++ b/users/profiles/git/config @@ -0,0 +1,46 @@ +[user] + name = Henrik Lissner + email = henrik@lissner.net +[core] + whitespace = trailing-space +[init] + defaultBranch = main +[github] + user = chickensoupwithrice +[gitlab] + user = +[rebase] + autosquash = true +[push] + default = current +[pull] + rebase = true +[alias] + unadd = reset HEAD + # data analysis + ranked-authors = !git authors | sort | uniq -c | sort -n + emails = !git log --format="%aE" | sort -u + email-domains = !git log --format="%aE" | awk -F'@' '{print $2}' | sort -u +[filter "lfs"] + required = true + smudge = git-lfs smudge -- %f + process = git-lfs filter-process + clean = git-lfs clean -- %f +[url "https://github.com/"] + insteadOf = gh: +[url "git@github.com:"] + insteadOf = ssh+gh: +[url "git@github.com:chickensoupwithrice/"] + insteadOf = gh:/ +[url "https://gitlab.com/"] + insteadOf = gl: +[url "https://gist.github.com/"] + insteadOf = gist: +[url "https://bitbucket.org/"] + insteadOf = bb: +[url "https://git.v0.com"] + insteadOf = v0: +[diff "lisp"] + xfuncname = "^(((;;;+ )|\\(|([ \t]+\\(((cl-|el-patch-)?def(un|var|macro|method|custom)|gb/))).*)$" +[diff "org"] + xfuncname = "^(\\*+ +.*)$" diff --git a/users/profiles/git/ignore b/users/profiles/git/ignore new file mode 100644 index 00000000..663d047a --- /dev/null +++ b/users/profiles/git/ignore @@ -0,0 +1,36 @@ +# For emacs: +*~ +*.*~ +\#* +.\#* + +# For vim: +*.swp +.*.sw[a-z] +*.un~ +.netrwhist + +# OS generated files # +###################### +.DS_Store? +.DS_Store +.CFUserTextEncoding +.Trash +.Xauthority +thumbs.db +Thumbs.db +Icon? + +# Code stuffs # +############### +.ccls-cache/ +.sass-cache/ +__pycache__/ + +# Compiled thangs # +################### +*.class +*.exe +*.o +*.pyc +*.elc