nutools/profile

14 lines
445 B
Bash

# -*- coding: utf-8 mode: sh -*- vim:sw=4:sts=4:et:ai:si:sta:fenc=utf-8
[ -f ~/.nutoolsrc ] && . ~/.nutoolsrc
[ -z "$USER" -a -n "$LOGNAME" ] && export USER="$LOGNAME"
function uprovide() { :; }
source @@dest@@/lib/ulib/uenv || return
if [ -n "$UTOOLS_LOCAL_PROFILES" ]; then
__uenv_source_dirs @@dest@@/profile.d "$HOME/etc/profile.${HOSTNAME%%.*}.d"
else
__uenv_source_dirs @@dest@@/profile.d "$HOME/etc/profile.d"
fi
__uenv_cleanup