.profile.prompt show full host name.
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user