From 846a3f8e10b2babddd902e9bad523c159b6023c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?tr=C3=A9meur?= Date: Sat, 20 Jun 2020 23:29:16 +0100 Subject: [PATCH] Reinstate wrongly removed command --- dots/aliases | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/dots/aliases b/dots/aliases index 5c155fc..efbcbb9 100644 --- a/dots/aliases +++ b/dots/aliases @@ -34,3 +34,11 @@ cdls(){ alias rp="killall plank && nohup plank &" alias rck="killall conky && nohup conky &" alias rsw="nmcli radio wifi off && nmcli radio wifi on" + +gitwho(){ +if [ -d .git ]; then + echo $(git config user.name); +else + git rev-parse --git-dir 2> /dev/null; +fi; +} \ No newline at end of file