mirror of
https://github.com/sbrl/bin.git
synced 2018-01-10 21:33:46 +00:00
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:
parent
034ed9847c
commit
3d8b2b6d32
1 changed files with 6 additions and 0 deletions
6
envsetup
6
envsetup
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue