Improve git defaults
This commit is contained in:
parent
b997c20887
commit
9d9d9c87fe
@ -1,10 +1,31 @@
|
||||
[user]
|
||||
email = ewpratten@gmail.com
|
||||
name = Evan Pratten
|
||||
# signingkey =
|
||||
|
||||
# [core]
|
||||
# editor = "vim"
|
||||
|
||||
# [gpg]
|
||||
# format = ssh
|
||||
|
||||
[gpg "ssh"]
|
||||
allowedSignersFile = ~/.ssh/allowed_signers
|
||||
|
||||
[filter "lfs"]
|
||||
clean = git-lfs clean -- %f
|
||||
smudge = git-lfs smudge -- %f
|
||||
process = git-lfs filter-process
|
||||
required = true
|
||||
|
||||
[url "ssh://git@github.com/"]
|
||||
insteadOf = https://github.com/
|
||||
|
||||
[credential "https://github.com"]
|
||||
helper =
|
||||
helper = !/usr/bin/gh auth git-credential
|
||||
|
||||
[credential "https://gist.github.com"]
|
||||
helper =
|
||||
helper = !/usr/bin/gh auth git-credential
|
||||
|
||||
|
1
configs/ssh/allowed_signers
Normal file
1
configs/ssh/allowed_signers
Normal file
@ -0,0 +1 @@
|
||||
evan@ewpratten.com sk-ssh-ed25519@openssh.com AAAAGnNrLXNzaC1lZDI1NTE5QG9wZW5zc2guY29tAAAAIAkdmKF1cYQTW7cfK7TYC5iVBsAg5g3SRJqlqo2NixHdAAAABHNzaDo=
|
@ -20,6 +20,17 @@ fi
|
||||
export PATH="$HOME/bin:$PATH"
|
||||
export PATH="$HOME/.local/bin:$PATH"
|
||||
|
||||
# Configure a sane default editor
|
||||
if type -p nvim > /dev/null; then
|
||||
export EDITOR="nvim"
|
||||
elif type -p vim > /dev/null; then
|
||||
export EDITOR="vim"
|
||||
elif type -p vi > /dev/null; then
|
||||
export EDITOR="vi"
|
||||
elif type -p nano > /dev/null; then
|
||||
export EDITOR="nano"
|
||||
fi
|
||||
|
||||
# SDKMAN!
|
||||
export SDKMAN_DIR="$HOME/.sdkman"
|
||||
[[ -s "$HOME/.sdkman/bin/sdkman-init.sh" ]] && source "$HOME/.sdkman/bin/sdkman-init.sh"
|
||||
|
@ -34,6 +34,7 @@
|
||||
~/.local/share/nautilus/scripts/Copy to web:
|
||||
path: configs/nautilus/scripts/Copy to web
|
||||
mode: 755
|
||||
~/.ssh/allowed_signers: configs/ssh/allowed_signers
|
||||
|
||||
- shell:
|
||||
- [git submodule update --init --recursive, Installing submodules]
|
||||
|
Loading…
x
Reference in New Issue
Block a user