2 # couple of environment settings to ensure sanity
6 ## We live in a unicode world now
11 # The wrappers directory must be the first entry in the PATH.
13 # Once you are no longer needing or using the tools dir you can remove it
14 # from the PATH if you want, but leaving it there won't hurt.
15 #PATH=/usr/lib/pkgusr:/usr/bin:/usr/X11R6/bin:/opt/qt/bin:/tools/bin
16 PATH=/usr/lib/pkgusr:/usr/bin:/usr/X11R6/bin:/opt/qt/bin
18 ## A couple things to make less(1) nicer.
21 LESSOPEN='|lesspipe.sh %s'
23 ## Timezone -- set to your local zone
24 TZ='Australia/Brisbane'
30 _XORG=/usr/X11R6/lib/pkgconfig:/usr/X11R6/share/pkgconfig
31 _KDE=/opt/kde/lib/pkgconfig:/opt/kde/share/pkgconfig
32 _QT=${QTDIR}/lib/pkgconfig
33 _PKGCFG=$(pkg-config --variable pc_path pkg-config)
34 PKG_CONFIG_PATH=${_PKGCFG}:${_XORG}:${_KDE}:${_QT}
37 unset _XORG _KDE _QT _PKGCFG
39 ## Locale directory suppression.
40 # If this is set to `1' (one) then the install and mkdir wrappers
41 # won't put anything in /usr/share/locale. Technically, the mkdir
42 # wrapper still creates the dir, but it is removed afterward. If
43 # you want to override this behaviour globally, set this to `0'
44 # (zero) here, or you can override an individual package by adding
45 # `SUPPRESSLOCALEDIR=0' to that pkgusr's ~/.pkgusrrc.
47 # See the comments in the install wrapper for more detail and
51 ## Build script update checks
52 # If this is set to `1' (one) a check is done to see if there is a
53 # newer build script available that the pkgusr could update to. If an
54 # update is available a message is printed to stdout with instructions
57 # Override this in ~/.pkgusrrc.
60 ## Slackware PKG local repo
61 # Having a shortcut to a local Slackware PKG repo is very useful.
62 # Pat Volkerding and his team are of a minority who actually know
63 # what they are doing. I always check Slackware for patches.
65 # I get the Slack source via rsync.
66 # See https://mirrors.slackware.com/mirrorlist/
68 SLACKPKG=/home/steve/download/Slackware/slackware64-current/source
69 # Obviously edit to suit your situation
72 export LANG LC_CTYPE PATH LESS LESSCHARSET LESSOPEN TZ PKG_CONFIG_PATH QTDIR
73 export SUPPRESSLOCALEDIR CHECKUPDATES SLACKPKG
75 # Make prompt reflect that we are a package user.
76 export PROMPT_COMMAND='PS1="[pkgusr (\u)] \w> "'
80 alias ls='ls --color=always -Fb'
82 # Suck in some handy shell functions
83 . /etc/pkgusr/handy_funcs
85 # Go to the home directory whenever we su to a package user.
88 # Setup the git config if needed
89 if [[ ! -d ${HOME}/.config/git && -f ${HOME}/.gitconfig ]]; then
94 if [ -f /usr/share/bash-completion/bash_completion ]; then
95 . /usr/share/bash-completion/bash_completion
98 # If they exist, load any private settings. This comes last so that
99 # we can override any system defaults if need be
100 if [ -f ${HOME}/.pkgusrrc ]; then
105 # Don't put anything below here unless it relies on something being
109 # Maybe check if the build script can be updated, but not on dumb
110 # terms so that TRAMP still works.
111 if [ ${CHECKUPDATES} -eq 1 -a "$TERM" != "dumb" ]; then