]> git.nbdom.net Git - nb.git/commitdiff
/opt/nb/etc/profile.d/ps1.sh
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Sun, 18 Aug 2019 05:18:29 +0000 (06:18 +0100)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Sun, 18 Aug 2019 05:18:29 +0000 (06:18 +0100)
etc/profile.d/nb.sh
etc/profile.d/ps1.sh

index a99fcf9a43016efb4e4b2cb692add9a9ce48fbc1..5c5598579a7b2cc85f4a1d3a5d6aafcab37f29e5 100644 (file)
@@ -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"
+}
index 5fc9390eeaa75b84d44039f386a5f7c2c1afde09..db1f900bd52304cfe3c07fa15315ade3dded70be 100644 (file)
@@ -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\$ "