diff --git a/config/.profile.prompt b/config/.profile.prompt index 455d264..66904ab 100755 --- a/config/.profile.prompt +++ b/config/.profile.prompt @@ -49,8 +49,8 @@ if [ -n "$PS1" ]; then c_info="$(tput setaf 3)" #Yellow fi - [ -n "$(which svn)" ] && prompt_check_svn=true - [ -n "$(which git)" ] && prompt_check_git=true + [ ! -z "$(which svn 2> /dev/null )" ] && prompt_check_svn=true + [ ! -z "$(which git 2> /dev/null )" ] && prompt_check_git=true if [ -n "$ZSH_VERSION" ]; then s_host="%m" @@ -60,7 +60,7 @@ if [ -n "$PS1" ]; then fi if [ -n "$BASH_VERSION" ]; then export PROMPT_COMMAND="__prompt_command" - s_host="\h" + s_host="\H" s_user="\u" s_cwd="\w" s_time="\t"