2013-08-07 20:23:13 -07:00
|
|
|
#! /bin/bash
|
|
|
|
|
|
|
|
# Set some Git Config options
|
|
|
|
# Set vim as default git editor
|
|
|
|
git config --global core.editor "vim"
|
|
|
|
# Turn on colors
|
|
|
|
git config --global color.ui auto
|
|
|
|
# Set diff tool to vimdiff
|
|
|
|
git config --global diff.tool vimdiff
|
|
|
|
# Suppress launching prompt
|
|
|
|
git config --global difftool.prompt false
|
2019-04-15 10:07:42 -07:00
|
|
|
# Create global ignore file
|
2019-11-12 17:59:41 -08:00
|
|
|
mkdir -p "$XDG_CONFIG_HOME/git/"
|
2019-04-15 10:07:42 -07:00
|
|
|
git config --global core.excludesfile "$XDG_CONFIG_HOME/git/exclude_global"
|
|
|
|
try_link "exclude_global" "$XDG_CONFIG_HOME/git/exclude_global"
|