# -*- shell-script -*- # couple of environment settings to ensure sanity set +h umask 022 LC_ALL=POSIX ## PATH # The wrappers directory must be the first entry in the PATH. # # Once you are no longer needing or using the tools dir you can remove it # from the PATH if you want, but leaving it there won't hurt. #PATH=/usr/lib/pkgusr:/usr/bin:/bin:/usr/X11R6/bin:/opt/qt/bin:/tools/bin PATH=/usr/lib/pkgusr:/usr/bin:/bin:/usr/X11R6/bin:/opt/qt/bin ## A couple things to make less(1) nicer. LESS=-MRgisw LESSCHARSET=utf-8 LESSOPEN='|lesspipe.sh %s' ## Timezone -- set to your local zone TZ='Australia/Brisbane' ## QT QTDIR=/opt/qt ## pkg-config _XORG=/usr/X11R6/lib/pkgconfig:/usr/X11R6/share/pkgconfig _KDE=/opt/kde/lib/pkgconfig:/opt/kde/share/pkgconfig _QT=${QTDIR}/lib/pkgconfig _PKGCFG=$(pkg-config --variable pc_path pkg-config) PKG_CONFIG_PATH=${_PKGCFG}:${_XORG}:${_KDE}:${_QT} # unset the tmp vars unset _XORG _KDE _QT _PKGCFG ## Locale directory suppression. # If this is set to `1' (one) then the install and mkdir wrappers # won't put anything in /usr/share/locale. Technically, the mkdir # wrapper still creates the dir, but it is removed afterward. If # you want to override this behaviour globally, set this to `0' # (zero) here, or you can override an individual package by adding # `SUPPRESSLOCALEDIR=0' to that pkgusr's ~/.pkgusrrc. # # See the comments in the install wrapper for more detail and # rationale. SUPPRESSLOCALEDIR=1 ## Build script update checks # If this is set to `1' (one) a check is done to see if there is a # newer build script available that the pkgusr could update to. If an # update is available a message is printed to stdout with instructions # of how to proceed. # # Override this in ~/.pkgusrrc. CHECKUPDATES=1 ### export everything export LC_ALL PATH LESS LESSCHARSET LESSOPEN TZ PKG_CONFIG_PATH QTDIR export SUPPRESSLOCALEDIR CHECKUPDATES # Make prompt reflect that we are a package user. export PROMPT_COMMAND='PS1="[pkgusr (\u)] \w> "' # Suck in some handy shell functions . /etc/pkgusr/handy_funcs # If they exist, load any private settings. This comes last so that # we can override any system defaults if need be if [ -f ${HOME}/.pkgusrrc ]; then . ${HOME}/.pkgusrrc fi # Go to the home directory whenever we su to a package user. cd # Maybe check if the build script can be updated. if [ ${CHECKUPDATES} -eq 1 ]; then checkupdates fi # Local variables: # sh-basic-offset: 4 # End: