Make git configuration more portable
This commit is contained in:
parent
b913f6bb7d
commit
35c8ecc590
4 changed files with 28 additions and 2 deletions
20
README.md
20
README.md
|
@ -16,3 +16,23 @@ I am most maintaining are:
|
|||
|
||||
In addition to this, you can find a few little scripts I use in the `bin`
|
||||
directory, and some Python scripts to support those in lib.
|
||||
|
||||
## Installing
|
||||
|
||||
Clone this somewhere, and run
|
||||
|
||||
```
|
||||
./script/bootstrap.sh
|
||||
```
|
||||
|
||||
This will need to be run any time that new files are added to the dotfiles.
|
||||
Every file in `*/*.symlink` will be symlinked to `~/.basename`, and every file
|
||||
or folder called `*/*.xdg.symlink` will be symlinked to `~/.config/basename`.
|
||||
|
||||
There is no garbage collection. If you remove something, you will also need to
|
||||
remove the now dangling symlink.
|
||||
|
||||
Post-installation, you will also want to copy `zsh/zsh.symlink/secret.dist` to
|
||||
`zsh/zsh.symlink/secret` and edit the appropriate values. Also if you're not
|
||||
me, you'll need to change the SSH signing public key in
|
||||
`git/gitconfig.symlink`.
|
||||
|
|
|
@ -6,8 +6,6 @@
|
|||
fileMode = false
|
||||
|
||||
[user]
|
||||
name = Max Bucknell
|
||||
email = me@maxbucknell.com
|
||||
signingkey = ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDHQK3AUkoorhSGqIICrSRYJJ8XCF1sKJ45CEwHLQePpBCZfCty4dbhqVTWFbyDcL1P1kKTcoljg0JmyjjJPM9IUTjFD1ruGU2rAB7aTZ4s5j2x6kVTdNyGnHOn8wy/tJC5O6R2sDjcbJWuIAw3q47bpZ8Ro/ehvvZSYJ3U+sb8kZ9XstoNDhanego4NTFd3D9F6RWJGn11/+NGuhKDq5S0knnOcC80QLgdMyVI/t/mgIWfUjAa48FUBj/ofC93a7cJLPE3bMBiUV7B2K9lPrymvQzGo+5whHmvS580cAB6y3XJodqWSocrfKZO5b8WwqjcLcVQ3u+qg9M+DUaP9fvlGs/MDsG+pyImxvsy9FL4CSUF6UB4X6bBuz4zf0p2icbdtm5/tlApw9sH6GmC+t/6514L2tqpo88puXUof4H53EcaWY/RSvb2exKCa7DOq13DgD0E2EZl6rOAezy3mvUuX7b3plMtKZ5keQEINyqclqb/1BRuHEYssh84Wmr4G2wRdbX6IYCU5KCJ6HqVL3YFv6zA5YFKqgBYA3/APsduCGawT204cG1juSQvA+VF5Le4P9L717Imawa8Se/1ROiafCPrxGEp3fHFM+D7OQAy3y0wn1yeSwNdRAyHZsLEVozJ4KSwWBCfnV0TgptgTqBMlbLYwaisnIS3Z/ZH5ziJXQ==
|
||||
|
||||
[init]
|
||||
|
|
2
zsh/zsh.symlink/secret.dist
Normal file
2
zsh/zsh.symlink/secret.dist
Normal file
|
@ -0,0 +1,2 @@
|
|||
export GIT_AUTHOR_NAME="Max Bucknell"
|
||||
export GIT_AUTHOR_EMAIL="me@maxbucknell.com"
|
|
@ -83,6 +83,12 @@ compinit
|
|||
source "$HOME/.zsh/_bazel"
|
||||
|
||||
|
||||
# Git config
|
||||
# Git separates committer and author, and I don't care for that.
|
||||
# Author details are set in secret.
|
||||
export GIT_COMMITTER_NAME="$GIT_AUTHOR_NAME"
|
||||
export GIT_COMMITTER_EMAIL="$GIT_AUTHOR_EMAIL"
|
||||
|
||||
# Get the first part of the hostname
|
||||
#
|
||||
# Sometimes they have dots in them, I'm not partial to that.
|
||||
|
|
Loading…
Add table
Reference in a new issue