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