add gitconfig and ssh config

This commit is contained in:
Nils Norman Haukås 2022-11-22 19:42:16 +01:00
parent 22050d75d7
commit 44e3b86c98
3 changed files with 32 additions and 0 deletions

16
configs/gitconfig Normal file
View file

@ -0,0 +1,16 @@
[user]
name = Nils Norman Haukås
email = mail@nilsnh.no
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[pull]
rebase = true
[alias]
clean-branches = "!git branch --merged | grep -v '\\*\\|master|main|develop|dev' | xargs -n1 -r git branch -d"
wops1 = "!git reset --hard HEAD~1"
wt = "worktree"
[init]
defaultBranch = main

14
configs/ssh-config Executable file
View file

@ -0,0 +1,14 @@
Host bitbucket.org
UseKeychain yes
AddKeysToAgent yes
HostName bitbucket.org
User git
IdentityFile ~/.ssh/id_rsa_v2
Host tv2
IdentitiesOnly yes
UseKeychain yes
AddKeysToAgent yes
HostName bitbucket.org
User git
IdentityFile ~/.ssh/id_tv2

View file

@ -7,6 +7,8 @@
~/.bashrc_local: .bashrc_local
~/.config/nvim: nvim/
/usr/local/bin/packup.sh: packup.sh
~/.ssh/config: configs/ssh-config
~/.gitconfig: configs/gitconfig
- shell:
-
command: ./install-bashrc_local