Skip to content

Commit

Permalink
Add git config commands to install script
Browse files Browse the repository at this point in the history
  • Loading branch information
mortenfyhn committed Aug 26, 2024
1 parent ca37e78 commit 886c74e
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .config/dotfiles/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,21 @@ sudo apt update -qq
sudo apt upgrade -qq
echo "Done"

bold "Configure git"
git config --global user.name "Morten Fyhn Amundsen"
git config --global core.pager "less -F -X"
git config --global core.excludesfile "~/.gitignore-global"
git config --global merge.conflictStyle zdiff3
git config --global init.defaultBranch master
git config --global fetch.prune true
git config --global pull.ff only
git config --global push.default current
git config --global help.autocorrect 1
if [[ "$headless" = false ]]; then
git config --global core.editor "subl -n -w"
fi
echo "Done"

# Clone dotfiles
bold "Cloning dotfiles repo"
grep -sqxF ".dotfiles" ~/.gitignore || echo ".dotfiles" >>~/.gitignore
Expand Down

0 comments on commit 886c74e

Please sign in to comment.