add gitconfig to repo

This commit is contained in:
Jan Jastrow 2024-06-23 00:24:06 +02:00
parent 882be853a7
commit d78a4f114c
2 changed files with 12 additions and 1 deletions

9
gitconfig Normal file
View File

@ -0,0 +1,9 @@
# This is Git's per-user configuration file.
[user]
# Please adapt and uncomment the following lines:
name = Jan Jastrow
email = mail@jastrow.me
[core]
fsmonitor = true
[branch]
sort = -committerdate

View File

@ -1,15 +1,18 @@
#!/bin/sh
if [ ! -x "$(which zsh)" ]; then
echo "zsh not found"
exit
fi
rm ~/.zshrc
ln -s ~/.dotfiles/zshrc ~/.zshrc
ln -s ~/.dotfiles/tmux/tmux.conf ~/.tmux.conf
ln -s ~/.dotfiles/gitconfig ~/.gitconfig
mkdir ~/.dotfiles/this-machine
touch ~/.dotfiles/this-machine/zsh
touch ~/.dotfiles/this-machine/tmux.conf
sudo chsh -s "$(which zsh)" $USER
# If private repo is available, add ssh config + hosts
@ -23,6 +26,5 @@ fi
# Remove old bash files
rm ~/.bashrc
rm ~/.bash_logout
rm ~/.bash_history
zsh