.profile.prompt show full host name.

This commit is contained in:
2021-06-27 09:04:38 +01:00
parent d8de2dd2d4
commit 25fe63e4f9

View File

@@ -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"