From 57d1ae7cee7ac248630863510f9186b381516e03 Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Sun, 18 Aug 2019 06:18:29 +0100 Subject: [PATCH] /opt/nb/etc/profile.d/ps1.sh --- etc/profile.d/nb.sh | 4 ++++ etc/profile.d/ps1.sh | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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\$ " -- 2.47.3