From: Nicolas Boisselier Date: Sun, 18 Aug 2019 05:18:29 +0000 (+0100) Subject: /opt/nb/etc/profile.d/ps1.sh X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=57d1ae7cee7ac248630863510f9186b381516e03;p=nb.git /opt/nb/etc/profile.d/ps1.sh --- diff --git a/etc/profile.d/nb.sh b/etc/profile.d/nb.sh index a99fcf9a..5c559857 100644 --- a/etc/profile.d/nb.sh +++ b/etc/profile.d/nb.sh @@ -137,3 +137,7 @@ nb_api_post_hosts_infos() { [ "$1" != "-test" ] && nb_api_post_host_info "sys.${i[0]}" "${i[*]:1}" > /dev/null done } + +nb_test() { + docker run --rm -it -v $NB_ROOT:$NB_ROOT bash bash -c " . $NB_ROOT/etc/profile --nb-debug && nb_repos && echo OK" +} diff --git a/etc/profile.d/ps1.sh b/etc/profile.d/ps1.sh index 5fc9390e..db1f900b 100644 --- a/etc/profile.d/ps1.sh +++ b/etc/profile.d/ps1.sh @@ -4,5 +4,5 @@ [ "${BASH-no}" != "no" ] || return 0 is_prompt 2>/dev/null || return 0 -PS1="\u@\h:\W${char}" +PS1="\u@\h:\W" [ $UID = "0" ] && PS1="$PS1# " || PS1="$PS1\$ "