fish_functions/functions/GitConf.fish

18 lines
No EOL
770 B
Fish

function GitConf -d "Autoconf git local info with name,email and gpg key "
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