Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
K
KWSys
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Shannon Booth
KWSys
Commits
5e60d784
Commit
5e60d784
authored
13 years ago
by
Brad King
Browse files
Options
Downloads
Patches
Plain Diff
Add 'tips' script to suggest local configuration
parent
de67e320
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitattributes
+2
-0
2 additions, 0 deletions
.gitattributes
tips
+55
-0
55 additions, 0 deletions
tips
with
57 additions
and
0 deletions
.gitattributes
+
2
−
0
View file @
5e60d784
.git* export-ignore
tips eol=lf whitespace=indent-with-non-tab
This diff is collapsed.
Click to expand it.
tips
0 → 100755
+
55
−
0
View file @
5e60d784
#!/usr/bin/env bash
#=============================================================================
# Copyright 2010-2012 Kitware, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#=============================================================================
# This script makes optional suggestions for working with Git.
# Project configuration instructions: NONE
egrep-q
()
{
egrep
"
$@
"
>
/dev/null 2>/dev/null
}
# Suggest color configuration.
if
test
-z
"
$(
git config
--get
color.ui
)
"
;
then
echo
'
One may enable color output from Git commands with
git config --global color.ui auto
'
fi
# Suggest bash completion.
if
!
bash
-i
-c
'echo $PS1'
| egrep-q
'__git_ps1'
;
then
echo
'
A dynamic, informative Git shell prompt can be obtained by sourcing
the git bash-completion script in your "~/.bashrc". Set the PS1
environmental variable as suggested in the comments at the top of the
bash-completion script. You may need to install the bash-completion
package from your distribution to obtain it.
'
fi
# Suggest merge tool.
if
test
-z
"
$(
git config
--get
merge.tool
)
"
;
then
echo
'
One may configure Git to load a merge tool with
git config merge.tool <toolname>
See "git help mergetool" for more information.
'
fi
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment