MJ_PS1_EXTRA

This commit is contained in:
Motiejus Jakštys 2024-06-07 20:53:33 +03:00
parent e77b23b745
commit 8a37f56311

View File

@ -79,9 +79,7 @@
]; ];
bash.initExtra = '' bash.initExtra = ''
hm_ps1_extra() { hm_ps1_extra() {
if type -t mj_ps1_extra >/dev/null; then eval "''${MJ_PS1_EXTRA:-}"
mj_ps1_extra
fi
} }
export PS1=$(echo "$PS1" | sed 's;\\n;$(hm_ps1_extra);') export PS1=$(echo "$PS1" | sed 's;\\n;$(hm_ps1_extra);')
''; '';