From f09611c72040eebc3be6cb9f35f190ff46b8938c Mon Sep 17 00:00:00 2001 From: Jordan Bancino Date: Fri, 16 Feb 2024 16:02:12 -0500 Subject: [PATCH] Fine-tune my shell and git configs. --- .ashrc | 3 +++ .gitconfig | 22 ++++++++++++++++++++++ 2 files changed, 25 insertions(+) diff --git a/.ashrc b/.ashrc index d543b21..cd95be0 100644 --- a/.ashrc +++ b/.ashrc @@ -11,6 +11,9 @@ is_ssh() { fi } +# The shell might not start in the home directory. +cd "$HOME" + # Signal to some programs that vi is the editor that should be launched. export EDITOR=vim diff --git a/.gitconfig b/.gitconfig index c164a8b..88e0e0c 100644 --- a/.gitconfig +++ b/.gitconfig @@ -3,11 +3,33 @@ # Please adapt and uncomment the following lines: name = Jordan Bancino email = jordan@bancino.net + signingkey = /home/jordan/.ssh/id_ed25519.pub [push] autoSetupRemote = yes + gpgsign = true [credential] helper = store [pull] rebase = false [init] defaultBranch = master +[transfer] + fsckobjects = true +[fetch] + fsckobjects = true + prune = true +[receive] + fsckObjects = true +[url "git.github.com:"] + insteadOf = "https://github.com" +[branch] + sort = -comitterdate +[diff] + context = 10 + colorMoved = default +[gpg] + format = ssh +[commit] + gpgsign = true +[tag] + gpgsign = true