Browse Source

hide jobnum

pull/1/head
10sr 12 years ago
parent
commit
81ad132b53
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      bashrc

+ 2
- 2
bashrc View File

@@ -422,7 +422,7 @@ __my_prompt_function(){ # used by PS1
else
local pwd=$(echo "${PWD}/" | sed -e "s#${HOME}#~#")
local oldpwd=$(echo "${OLDPWD}/" | sed -e "s#${HOME}#~#")
local jobnum=$(jobs | wc -l)
local jobnum=$(jobs | wc -l) # a strange job exists...
local git=$(__try_exec __git_ps1 [GIT:%s])
local date=$(LANG=C __try_exec date +"%a, %d %b %Y %T %z")
fi
@@ -439,7 +439,7 @@ __my_prompt_function(){ # used by PS1

printf " [${c1}${pwd}${cdef}<${c3}${oldpwd}${cdef}]${git}${svn}${battery}${ip}\n"
printf "${c2}${USER}@${HOSTNAME}${cdef} ${date}\n"
printf "shlv:${SHLVL} jobs:${jobnum} dirs:${dirs} last:${lastreturn} "
printf "shlv:${SHLVL} dirs:${dirs} last:${lastreturn} "

}
__my_set_title(){


Loading…
Cancel
Save