Add existing functions
This commit is contained in:
parent
7b665b25e1
commit
7d35464246
8 changed files with 46 additions and 0 deletions
18
functions/Gitconf.fish
Normal file
18
functions/Gitconf.fish
Normal file
|
@ -0,0 +1,18 @@
|
|||
function Gitconf -d "Autoconf git repo"
|
||||
command git status -s > /dev/null
|
||||
if test $status = 0
|
||||
if test $argv = "univ-nantes"
|
||||
command git config user.email "lana.heyrendt@etu.univ-nantes.fr"
|
||||
command git config user.name "Lana Heyrendt"
|
||||
command git config commit.gpgSign true
|
||||
command git config user.signingKey "<key>"
|
||||
else if test $argv = "taniere"
|
||||
command git config user.email "renarde-dev@la-taniere-solidaire.fr"
|
||||
command git config user.name "Renarde-dev"
|
||||
command git config commit.gpgSign true
|
||||
command git config user.signingKey "<key>"
|
||||
else
|
||||
echo "no matching config"
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue