From 855211270b20c26975eaa80154180476d32e26ef Mon Sep 17 00:00:00 2001 From: 10sr Date: Sat, 1 Oct 2011 22:19:05 +0900 Subject: [PATCH] .bashrc: display SHLVL in prompt --- .bashrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.bashrc b/.bashrc index 6add298..e975bb9 100755 --- a/.bashrc +++ b/.bashrc @@ -167,7 +167,7 @@ prompt_function(){ # used by PS1 local git=$(safe-cmd __git_ps1 [GIT:%s]) printf " [${c1}${pwd}${cdef}]${git}\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%"