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