From 54fe5aa16a10320556e993c394e3bf2e54c47690 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robin-Charles=20Guih=C3=A9neuf?= Date: Sun, 1 Nov 2020 19:24:28 +0100 Subject: [PATCH] alias: Add git profile switch aliases --- .bash_aliases | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.bash_aliases b/.bash_aliases index ed7ac33..8ffe398 100644 --- a/.bash_aliases +++ b/.bash_aliases @@ -202,6 +202,20 @@ function gai { git rebase --interactive --autosquash ${PARENT} } +# ╔═╗┬┌┬┐ ╔═╗┬─┐┌─┐┌─┐┬┬ ┌─┐ +# ║ ╦│ │ ╠═╝├┬┘│ │├┤ ││ ├┤ +# ╚═╝┴ ┴ ╩ ┴└─└─┘└ ┴┴─┘└─┘ + +function git_pro { + git config --global user.name "Robin-Charles GUIHENEUF" + git config --global user.email rguiheneuf@netatmo.com +} + +function git_perso { + git config --global user.name "Robin-Charles Guihéneuf" + git config --global user.email robin-charles@hotmail.fr +} + # ╔═╗┬┌┬┐ ╔═╗┌┬┐┌─┐┌┐┌┌┬┐ # ║ ╦│ │ ╠═╣│││├┤ │││ ││ # ╚═╝┴ ┴ ╩ ╩┴ ┴└─┘┘└┘─┴┘