diff options
| -rw-r--r-- | fish/du-config.fish | 43 | ||||
| -rw-r--r-- | git/du-dotgitconfig | 76 | ||||
| -rw-r--r-- | ssh/du-allowed-signers | 1 | ||||
| -rw-r--r-- | ssh/du-config | 10 |
4 files changed, 130 insertions, 0 deletions
diff --git a/fish/du-config.fish b/fish/du-config.fish new file mode 100644 index 0000000..f451183 --- /dev/null +++ b/fish/du-config.fish @@ -0,0 +1,43 @@ +alias c="clear" +alias h="history" + +if status is-interactive + set -gx LANG en_US.UTF-8 + set -gx LC_ALL en_US.UTF-8 + + set -gx HISTFILE $HOME/.histfile + set -gx HISTSIZE 10000 + set -gx SAVEHIST 10000 + + set -gx EDITOR nvim + set -gx ALTERNATE_EDITOR nano + set -gx VISUAL nvim + + keychain --eval --agents ssh id_defenseunicorns | source + + clear +end + +set -gx PAGER less +set -gx PERL_UNICODE AS +set -gx PERL_READLINE_NOWARN yes + +if test -d $HOME/bin + fish_add_path -p $HOME/bin +end + +if test -d $HOME/local/bin + fish_add_path -p $HOME/local/bin +end + +if test -d $HOME/.local/bin + fish_add_path -p $HOME/.local/bin +end + +if test -d $HOME/go/bin + fish_add_path -p $HOME/go/bin +end + +if test -f $HOME/.config/fish/env.fish + source $HOME/.config/fish/env.fish +end diff --git a/git/du-dotgitconfig b/git/du-dotgitconfig new file mode 100644 index 0000000..de8b9a8 --- /dev/null +++ b/git/du-dotgitconfig @@ -0,0 +1,76 @@ +[user] + name = Brad Clawsie + email = brad.clawsie@defenseunicorns.com + signingkey = ~/.ssh/id_defenseunicorns.pub + +[core] + pager = delta + editor = nvim + autocrlf = input + +[init] + defaultBranch = master + +[commit] + gpgsign = true + +[gpg] + format = ssh + +[gpg "ssh"] + allowedSignersFile = ~/.ssh/allowed_signers + +[pull] + ff = only + +[push] + autoSetupRemote = true + +[merge] + conflictstyle = diff3 + +[diff] + colorMoved = default + +[interactive] + diffFilter = delta --color-only + +[delta] + navigate = true + line-numbers = true + +[alias] + st = status -sb + tree = log --graph --pretty=format:'%C(yellow)%h%Creset -%C(auto)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit + undo = reset --soft HEAD~1 + ghosts = !"git fsck --lost-found | grep commit | cut -d ' ' -f 3 | xargs -n 1 git log -n 1 --pretty=format:'%C(red)%h%C(reset) %s' --color" + last = log -1 HEAD + +[tig] + main-view-date-display = no + # Refresh the view automatically when the focus returns to tig + refresh-mode = auto + +[tig "bind"] + # --- Status & Committing --- + # 'C' to commit with signature (your original) + status = C !git commit -S + # 'A' to amend the last commit (crucial for quick fixes) + status = A !git commit --amend + + # --- Staging & Hunks --- + # While 'u' stages a whole file, '\' in the status/stage view + # will split a hunk if it's too large to stage at once. + + # --- Stashing (Global bindings) --- + # 'Z' to stash everything (including untracked files) + generic = Z !git stash -u + # 'P' to pop the most recent stash + generic = P !git stash pop + # 'S' to stash ONLY what you have staged (great for "saving" a specific piece of work) + generic = S !git stash push --staged -m \"%(prompt Stash Name: )\" + + # --- Branch Management --- + # 'B' in the 'main' view to quickly create a new branch + main = B !?git checkout -b "%(prompt New branch name: )" + diff --git a/ssh/du-allowed-signers b/ssh/du-allowed-signers new file mode 100644 index 0000000..28febd3 --- /dev/null +++ b/ssh/du-allowed-signers @@ -0,0 +1 @@ +brad.clawsie ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBD711g5LqpjRTRC2ZlALx7dXzhcXL0uXZTAefmw2u5uZwuBbmiwlpliuPXGWjCdRrsktm8lnc+EdXEHKPe2krDw= brad.clawsie@defenseunicorns.com diff --git a/ssh/du-config b/ssh/du-config new file mode 100644 index 0000000..693765d --- /dev/null +++ b/ssh/du-config @@ -0,0 +1,10 @@ +ConnectionAttempts 1 +ForwardAgent yes +ForwardX11 no +KeepAlive yes +AddKeysToAgent yes + +Host github.com github + User git + IdentityFile ~/.ssh/id_defenseunicorns + IdentitiesOnly yes |
