From 25fe63e4f9fdb8b77886ea726028f8e4feff8d45 Mon Sep 17 00:00:00 2001 From: Vahagn Khachatryan Date: Sun, 27 Jun 2021 09:04:38 +0100 Subject: [PATCH] .profile.prompt show full host name. --- config/.profile.prompt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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"