Преглед изворни кода

.bashrc: display SHLVL in prompt

pull/1/head
10sr пре 12 година
родитељ
комит
855211270b
1 измењених фајлова са 1 додато и 1 уклоњено
  1. +1
    -1
      .bashrc

+ 1
- 1
.bashrc Прегледај датотеку

@@ -167,7 +167,7 @@ prompt_function(){ # used by PS1
local git=$(safe-cmd __git_ps1 [GIT:%s]) local git=$(safe-cmd __git_ps1 [GIT:%s])
printf " [${c1}${pwd}${cdef}]${git}\n" printf " [${c1}${pwd}${cdef}]${git}\n"
printf "${c2}${USER}@${HOSTNAME}${cdef} ${date} ${BASH} ${BASH_VERSION}\n" printf "${c2}${USER}@${HOSTNAME}${cdef} ${date} ${BASH} ${BASH_VERSION}\n"
printf "jobs:${jobnum} last:${lastreturn} "
printf "shlv:${SHLVL} jobs:${jobnum} last:${lastreturn} "
} }


# type date >/dev/null 2>&1 || alias date=":" # "cmd /c echo %time%" # type date >/dev/null 2>&1 || alias date=":" # "cmd /c echo %time%"


Loading…
Откажи
Сачувај