Add git client
This commit is contained in:
commit
8b6973f8be
3 changed files with 38 additions and 0 deletions
8
git/templates/git.csh.j2
Normal file
8
git/templates/git.csh.j2
Normal file
|
@ -0,0 +1,8 @@
|
|||
if ($uid > 3000 && "`/usr/bin/id -gn`" == "`/usr/bin/id -un`") then
|
||||
if ( "`git config user.name`" == "" ) then
|
||||
git config --global user.name "`getent passwd '${USER}' | cut -d : -f 5`"
|
||||
endif
|
||||
if ( "`git config user.email`" == "" ) then
|
||||
git config --global user.email "${USER}@{{ mail_domain }}"
|
||||
endif
|
||||
endif
|
Loading…
Add table
Add a link
Reference in a new issue