From 993075f3b9ed1cebf9f83f4ee69180f801163cc6 Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Thu, 1 Aug 2019 04:22:59 +0200 Subject: [PATCH] etc/profile --- etc/profile | 8 +++++--- etc/profile.d/envs | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/etc/profile b/etc/profile index aa0d6f0f..993ebc46 100755 --- a/etc/profile +++ b/etc/profile @@ -14,7 +14,7 @@ #-------------------------------------------------------------------------------- [ "$1" = "--nb-debug" ] && export NB_DEBUG="yes" && shift [ "$1" = "--nb-no-repos" ] && export NB_NO_REPOS="yes" && shift -#[ "$NB_DEBUG" = "yes" ] || return 0 +#which dirname > /dev/null || return nb_debug() { [ -n "$NB_DEBUG" -a "$NB_DEBUG" = "yes" ] || return 0 @@ -125,6 +125,8 @@ nb_debug "NB_ROOT=$NB_ROOT" if [ -n "$NB_ROOT" ]; then 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 \ @@ -142,5 +144,5 @@ if [ -n "$NB_ROOT" ]; then fi -#export NB_LAST_LOAD_TIME=$(date +"%Y-%M-%d %T") -_nb_unset; return 0 +_nb_unset +return 0 diff --git a/etc/profile.d/envs b/etc/profile.d/envs index a5d255fd..446c77e1 100644 --- a/etc/profile.d/envs +++ b/etc/profile.d/envs @@ -62,7 +62,7 @@ env_add_path 1>/dev/null || return PATH=$(env_add_path "$PATH" \ /bin \ /sbin \ - /usr/sbin \ + /usr/bin \ /usr/sbin \ /opt/local/bin \ /opt/local/sbin \ -- 2.47.3