# NB 09.01.18 $(true || nb_repos_ls "etc/profile" "etc/profile.d/*.sh" | awk '!/^\/etc\// && $0 != "'${NB_ROOT}/etc/profile'"') \
if [ -n "$NB_ROOT" ]; then
- alias which=which_cache
+ #alias which=which_cache
nb_debug "PATH=$PATH"
- #PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
for i in \
${NB_ROOT}/etc/profile.d/envs \
${NB_ROOT}/etc/profile.d/aliases \
nb_debug ". $i"
[ -r "$i" -a -f "$i" ] && . "$i"
done
- unalias which
+ #unalias which
fi
. /etc/os-release && echo $ID $VERSION
)
+ elif which lsb_release > /dev/null; then
+ lsb_release --short -d
+
elif which sw_vers > /dev/null; then
echo $(sw_vers 2>/dev/null | awk -F':\t' '/^(ProductName|ProductVersion)/{print $2}' | head -2) && return