From 4b1fbc1d707bd46beae059567f342cecf560630a Mon Sep 17 00:00:00 2001 From: Kamen Mladenov Date: Mon, 4 Nov 2024 09:56:37 +0200 Subject: feat(bash): Move precursor character to it's own variable --- .bashrc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to '.bashrc') diff --git a/.bashrc b/.bashrc index a747eb7..1a783c7 100644 --- a/.bashrc +++ b/.bashrc @@ -53,6 +53,7 @@ hc_mode && PS_RIGHT_SLAB='█' || PS_RIGHT_SLAB=' /' hc_mode && PS_RIGHT_SEMI='' || PS_RIGHT_SEMI=')' hc_mode && PS_PREC='' || PS_PREC='>' + hc_mode && PS_PREC_GIT='' || PS_PREC_GIT='{}' ___dirchanged="" @@ -163,7 +164,7 @@ ps_precursor() { if [ -n "$___changes" ] then - printf "" + printf "$PS_PREC_GIT" else printf "$PS_PREC" fi -- cgit v1.2.3