mirror of
https://github.com/ViViDboarder/shoestrap.git
synced 2024-11-14 04:46:30 +00:00
26 lines
826 B
Bash
Executable File
26 lines
826 B
Bash
Executable File
#! /bin/bash
|
|
|
|
# Set vim as default git editor
|
|
# Turn on colors
|
|
git config --global color.ui auto
|
|
# Set diff tool to vimdiff
|
|
if type nvim &>/dev/null ; then
|
|
git config --global diff.tool nvim -d
|
|
else
|
|
git config --global diff.tool vimdiff
|
|
fi
|
|
# Suppress launching prompt
|
|
git config --global difftool.prompt false
|
|
# Make main my default branch
|
|
git config --global init.defaultBranch main
|
|
# Set pull behavior
|
|
git config --global pull.ff only
|
|
|
|
# Create global ignore file
|
|
try_link "exclude_global" "$XDG_CONFIG_HOME/git/exclude_global"
|
|
git config --global core.excludesfile "$XDG_CONFIG_HOME/git/exclude_global"
|
|
|
|
# Add some includes
|
|
try_link "user_vividboarder.inc" "$XDG_CONFIG_HOME/git/user_vividboarder.inc"
|
|
git config --global includeif.gitdir:~/workspace/vividboarder/.path "$XDG_CONFIG_HOME/git/user_vividboarder.inc"
|