Skip to content

Commit

Permalink
update configs, use mise, use regular SSH keys for git signing
Browse files Browse the repository at this point in the history
  • Loading branch information
davekaro committed Nov 25, 2024
1 parent 816c1f4 commit 51a570f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 32 deletions.
16 changes: 11 additions & 5 deletions .gitconfig
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[user]
name = Dave Kroondyk
email = [email protected]
#signingkey = 077648A17E95BC1A
email = [email protected]
signingKey = ~/.ssh/id_ed25519.pub
[alias]
ci = commit
st = status
Expand All @@ -18,10 +18,11 @@
branch = auto
[merge]
tool = p4merge
conflictStyle = zdiff3
[mergetool]
keepBackup = false
[branch]
autosetuprebase = always
autoSetupRebase = always
sort = -committerdate
[push]
default = simple
Expand All @@ -35,8 +36,12 @@
smudge = git-lfs smudge -- %f
required = true
process = git-lfs filter-process
[gpg]
format = ssh
[gpg "ssh"]
allowedSignersFile = ~/.ssh/allowed_signers
[commit]
#gpgsign = true
gpgSign = true
[core]
editor = vim
[includeIf "gitdir:~/projects/"]
Expand All @@ -46,6 +51,7 @@
[pull]
rebase = true
[remote]
pushdefault = origin
pushDefault = origin
[init]
defaultBranch = main

29 changes: 2 additions & 27 deletions .zshrc_osx
Original file line number Diff line number Diff line change
Expand Up @@ -8,43 +8,18 @@ fi

eval "$(/opt/homebrew/bin/brew shellenv)"

#
# Workaround for: https://github.com/sorin-ionescu/prezto/issues/1744
#
export HISTFILE="${ZDOTDIR:-$HOME}/.zhistory" # The path to the history file.

# Source Prezto.
if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then
source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh"
fi

eval "$(nodenv init -)"
eval "$(rbenv init - zsh)"

# Customize to your needs...
#export PATH="$HOME/apps/p4v/bin:$PATH"
# Use bundle install --binstubs, so in a rails project the bin/ directory will be in my PATH
# https://twitter.com/tpope/status/165631968996900865
export PATH=".git/safe/../../bin:$PATH"
export PATH="$HOME/bin:$PATH"
export GOPATH="/usr/local/bin"

export PATH="$HOME/bin:$PATH"
export EDITOR=vim

# Add gpg agent to save password for git commits
# kill -0 checks to see if the pid exists
#if test -f $HOME/.gpg-agent-info && kill -0 `cut -d: -f 2 $HOME/.gpg-agent-info` 2>/dev/null; then
# GPG_AGENT_INFO=`cat $HOME/.gpg-agent-info | cut -c 16-`
#else
# No, gpg-agent not available; start gpg-agent
# eval `gpg-agent --daemon --no-grab --write-env-file $HOME/.gpg-agent-info`
#fi
#export GPG_TTY=`tty`
#export GPG_AGENT_INFO

alias be='bundle exec'
alias dc='docker-compose'
alias tailscale="/Applications/Tailscale.app/Contents/MacOS/Tailscale"

# . /usr/local/opt/asdf/asdf.sh

eval "$(/Users/dave/.local/bin/mise activate zsh)"

0 comments on commit 51a570f

Please sign in to comment.