PATH=/usr/lib/pkgusr:/usr/bin:/bin:/usr/X11R6/bin:/opt/qt/bin
## A couple things to make less(1) nicer.
-LESS=-MRgisw
+LESS='-MRgiswFX'
LESSCHARSET=utf-8
LESSOPEN='|lesspipe.sh %s'
# 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
+export SUPPRESSLOCALEDIR CHECKUPDATES
# Make prompt reflect that we are a package user.
export PROMPT_COMMAND='PS1="[pkgusr (\u)] \w> "'
# Go to the home directory whenever we su to a package user.
cd
+# Maybe check if the build script can be updated, but not on dumb
+# terms so that TRAMP still works.
+if [ ${CHECKUPDATES} -eq 1 -a "$TERM" != "dumb" ]; then
+ checkupdates
+fi
+
+
# Local variables:
# sh-basic-offset: 4
# End: