From c5185768b0c71b18e5c26c7aa34c01702d2d85b7 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sat, 16 Nov 2024 18:54:56 +0100 Subject: [PATCH] gcue,gcun --- shell/alias/git.sh | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/shell/alias/git.sh b/shell/alias/git.sh index b1ebb60..5ce5859 100644 --- a/shell/alias/git.sh +++ b/shell/alias/git.sh @@ -152,19 +152,21 @@ gcpc() { "${@}" } -# configure the user name -alias gcun="\ -git \ -config \ -user.name \ -" - # configure the user email -alias gcue="\ -git \ -config \ -user.email \ -" +gcue() { + git \ + config \ + "user.email" \ + "${@}" +} + +# configure the user name +gcun() { + git \ + config \ + "user.name" \ + "${@}" +} # differences from last or between commits alias gd="\