From e57370dbf542b165e430cc8c708677625a9f8ed4 Mon Sep 17 00:00:00 2001 From: JackJ30 Date: Mon, 9 Sep 2024 00:07:54 -0400 Subject: laptop config --- scripts/git-ps1 | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 scripts/git-ps1 (limited to 'scripts/git-ps1') diff --git a/scripts/git-ps1 b/scripts/git-ps1 new file mode 100755 index 0000000..0b860cd --- /dev/null +++ b/scripts/git-ps1 @@ -0,0 +1,9 @@ +#!/bin/sh +out=$(git branch --show-current 2>/dev/null) +if [ -z "$out" ] ; then + out="" +else + out="($out) " +fi +echo -n "$out" + -- cgit v1.2.3