fish_functions/functions/Gitconf.fish

18 lines
736 B
Fish

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