This commit is contained in:
Marc Beninca 2024-11-12 09:56:52 +01:00
parent 3a2a6a483c
commit 373b40dcf1
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -1,14 +1,11 @@
PS2="\ ps1() {
" local code=${1}
local date="$(date +%H:%M:%S)"
function ps1 { local git
local code=${1} local host="$(hostname)"
local date="$(date +%H:%M:%S)" local path="${PWD}"
local git local user="${USER}"
local host="$(hostname)" local view="└ "
local path="${PWD}"
local user="${USER}"
local view="└ "
if [ ${code} -ne 0 ] ; then if [ ${code} -ne 0 ] ; then
view="${view}\e[0;31m" view="${view}\e[0;31m"
else else
@ -33,3 +30,6 @@ local view="└ "
} }
PS1='$(eval ps1 ${?})' PS1='$(eval ps1 ${?})'
PS2="\
"