1
0
Fork 0

Optionally set up meld as the default merge tool if a display is present (ssh sessions don't have a display)

This commit is contained in:
Starbeamrainbowlabs 2017-05-08 11:56:02 +02:00
parent 034ed9847c
commit 3d8b2b6d32
1 changed files with 6 additions and 0 deletions

View File

@ -18,5 +18,11 @@ git config --global push.default simple
## Set the username & email address
git config --global user.name "Starbeamrainbowlabs"
git config --global user.email "sbrl@starbeamrainbowlabs.com"
# If we've got a display, then set up meld too
if [[ "$DISPLAY" != "" ]]; then
git config --global merge.tool meld
fi
## Add gitignore.io .gitignore file generator
git config --global alias.ignore '!gi() { curl -L -s https://www.gitignore.io/api/$@ ;}; gi'