if [ -z "$NB_ROOT" ]; then
unset NB_ROOT
- return
-fi
-for i in ${NB_ROOT}/etc/profile.d/envs ${NB_ROOT}/etc/profile.d/aliases $NB_ROOT/etc/profile.d/*.sh; do
- [ -r "$i" ] && . "$i"
-done
+else
+ for i in ${NB_ROOT}/etc/profile.d/envs ${NB_ROOT}/etc/profile.d/aliases $NB_ROOT/etc/profile.d/*.sh; do
+ [ -r "$i" ] && . "$i"
+ done
+ unset i tmp
+
+fi
-unset i tmp
true
(
alias
type $(shell_functions) | grep -v 'is a function$'
- cat $NB_ROOT/etc/profile
+ #cat $NB_ROOT/etc/profile
echo "[ -r /etc/profile ] && . /etc/profile"
) | ssh "$server" "cat > $tmp || rm -vf $tmp" || return