summaryrefslogtreecommitdiff
path: root/.bashrc
diff options
context:
space:
mode:
authorKamen Mladenov <kamen@syndamia.com>2024-11-04 09:56:37 +0200
committerKamen Mladenov <kamen@syndamia.com>2024-11-04 09:56:37 +0200
commit4b1fbc1d707bd46beae059567f342cecf560630a (patch)
tree5c6f70597951e33fdfd3e8555280ee0c0702d26d /.bashrc
parentb70c6f40b7aa326c423f0047c34e2928be544936 (diff)
downloaddotfiles-4b1fbc1d707bd46beae059567f342cecf560630a.tar
dotfiles-4b1fbc1d707bd46beae059567f342cecf560630a.tar.gz
dotfiles-4b1fbc1d707bd46beae059567f342cecf560630a.zip
feat(bash): Move precursor character to it's own variable
Diffstat (limited to '.bashrc')
-rw-r--r--.bashrc3
1 files changed, 2 insertions, 1 deletions
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