]> git.nbdom.net Git - nb.git/commitdiff
etc/profile
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Thu, 1 Aug 2019 02:22:59 +0000 (04:22 +0200)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Thu, 1 Aug 2019 02:22:59 +0000 (04:22 +0200)
etc/profile
etc/profile.d/envs

index aa0d6f0fefe01bb208c85212c2460c5b9a4d1a2e..993ebc463533961d9eb3f2509a0ef77c86dd267b 100755 (executable)
@@ -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
index a5d255fdf3095bf9ecdb766dd6cd91a81a1f0f18..446c77e1623ea24564dd37aab1c4caefa6e87bed 100644 (file)
@@ -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 \