ps2
This commit is contained in:
parent
3a2a6a483c
commit
373b40dcf1
1 changed files with 11 additions and 11 deletions
|
@ -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="\
|
||||||
|
├ "
|
||||||
|
|
Loading…
Reference in a new issue