2 # couple of environment settings to ensure sanity
8 # The wrappers directory must be the first entry in the PATH.
10 # Once you are no longer needing or using the tools dir you can remove it
11 # from the PATH if you want, but leaving it there won't hurt.
12 #PATH=/usr/lib/pkgusr:/usr/bin:/bin:/usr/X11R6/bin:/opt/qt/bin:/tools/bin
13 PATH=/usr/lib/pkgusr:/usr/bin:/bin:/usr/X11R6/bin:/opt/qt/bin
15 ## A couple things to make less(1) nicer.
18 LESSOPEN='|lesspipe.sh %s'
20 ## Timezone -- set to your local zone
21 TZ='Australia/Brisbane'
27 _XORG=/usr/X11R6/lib/pkgconfig:/usr/X11R6/share/pkgconfig
28 _KDE=/opt/kde/lib/pkgconfig:/opt/kde/share/pkgconfig
29 _QT=${QTDIR}/lib/pkgconfig
30 _PKGCFG=$(pkg-config --variable pc_path pkg-config)
31 PKG_CONFIG_PATH=${_PKGCFG}:${_XORG}:${_KDE}:${_QT}
34 unset _XORG _KDE _QT _PKGCFG
36 ## Locale directory suppression.
37 # If this is set to `1' (one) then the install and mkdir wrappers
38 # won't put anything in /usr/share/locale. Technically, the mkdir
39 # wrapper still creates the dir, but it is removed afterward. If
40 # you want to override this behaviour globally, set this to `0'
41 # (zero) here, or you can override an individual package by adding
42 # `SUPPRESSLOCALEDIR=0' to that pkgusr's ~/.pkgusrrc.
44 # See the comments in the install wrapper for more detail and
48 ## Build script update checks
49 # If this is set to `1' (one) a check is done to see if there is a
50 # newer build script available that the pkgusr could update to. If an
51 # update is available a message is printed to stdout with instructions
54 # Override this in ~/.pkgusrrc.
58 export LC_ALL PATH LESS LESSCHARSET LESSOPEN TZ PKG_CONFIG_PATH QTDIR
59 export SUPPRESSLOCALEDIR CHECKUPDATES
61 # Make prompt reflect that we are a package user.
62 export PROMPT_COMMAND='PS1="[pkgusr (\u)] \w> "'
64 # Suck in some handy shell functions
65 . /etc/pkgusr/handy_funcs
67 # If they exist, load any private settings. This comes last so that
68 # we can override any system defaults if need be
69 if [ -f ${HOME}/.pkgusrrc ]; then
73 # Go to the home directory whenever we su to a package user.
76 # Maybe check if the build script can be updated, but not on dumb
77 # terms so that TRAMP still works.
78 if [ ${CHECKUPDATES} -eq 1 -a "$TERM" != "dumb" ]; then