mirror of
https://github.com/ViViDboarder/shoestrap.git
synced 2024-11-23 12:06:40 +00:00
Update gitconfigs ff rules and path inclusions
Add git config for path based inclusion of user specific configs
This commit is contained in:
parent
adcfd14e41
commit
d5faf831b5
5
assets/default/git/user_vividboarder.inc
Normal file
5
assets/default/git/user_vividboarder.inc
Normal file
@ -0,0 +1,5 @@
|
||||
[user]
|
||||
name = ViViDboarder
|
||||
email = ViViDboarder@gmail.com
|
||||
|
||||
# vim: filetype=gitconfig
|
@ -1,15 +1,22 @@
|
||||
#! /bin/bash
|
||||
|
||||
# Set some Git Config options
|
||||
# Set vim as default git editor
|
||||
git config --global core.editor "vim"
|
||||
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
|
||||
# Make main my default branch
|
||||
git config --global init.defaultBranch main
|
||||
# Set pull behavior
|
||||
git config --global pull.ff only
|
||||
|
||||
# Create global ignore file
|
||||
mkdir -p "$XDG_CONFIG_HOME/git/"
|
||||
git config --global core.excludesfile "$XDG_CONFIG_HOME/git/exclude_global"
|
||||
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"
|
||||
|
Loading…
Reference in New Issue
Block a user