From 81ad132b533f2ca8f730ae379ee20d5507dbfe35 Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Fri, 20 Apr 2012 17:19:48 +0900 Subject: [PATCH] hide jobnum --- bashrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bashrc b/bashrc index ef59dcd..69cc26f 100755 --- a/bashrc +++ b/bashrc @@ -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(){