Initial commit.

This commit is contained in:
Darren 'Tadgy' Austin 2020-09-29 16:40:13 +01:00
commit 3d665e5e11
72 changed files with 3200 additions and 0 deletions

1
base-files/profile.d/biff.csh Executable file
View file

@ -0,0 +1 @@
if ( -X biff ) biff y

3
base-files/profile.d/biff.sh Executable file
View file

@ -0,0 +1,3 @@
hash biff >/dev/null 2>&1 && {
biff y 2>/dev/null
}

28
base-files/profile.d/lang.csh Executable file
View file

@ -0,0 +1,28 @@
#!/bin/csh
# Set the system locale. (no, we don't have a menu for this ;-)
# For a list of locales which are supported by this machine, type:
# locale -a
# en_US.UTF-8 is the Slackware default locale. If you're looking for
# a different UTF-8 locale, be aware that some of them do not include
# UTF-8 or utf8 in the name. To test if a locale is UTF-8, use this
# command:
# LANG=<locale> locale -k charmap
# UTF-8 locales will include "UTF-8" in the output.
# If there are problems with certain programs and a UTF-8 locale, you
# can set LANG=C before starting them.
if ( "$LANG" == "" ) setenv LANG "en_GB-UTF8"
# 'C' is the old Slackware (and UNIX) default, which is 127-bit
# ASCII with a charmap setting of ANSI_X3.4-1968. These days,
# it's better to use en_US or another modern $LANG setting to
# support extended character sets.
# if ( "$LANG" == "" ) setenv LANG "C"
# One side effect of the newer locales is that the sort order
# is no longer according to ASCII values, so the sort order will
# change in many places. Since this isn't usually expected and
# can break scripts, we'll stick with traditional ASCII sorting.
# If you'd prefer the sort algorithm that goes with your $LANG
# setting, comment this out.
if ( "$LC_COLLATE" == "" ) setenv LC_COLLATE "C"

28
base-files/profile.d/lang.sh Executable file
View file

@ -0,0 +1,28 @@
#!/bin/sh
# Set the system locale. (no, we don't have a menu for this ;-)
# For a list of locales which are supported by this machine, type:
# locale -a
# en_US.UTF-8 is the Slackware default locale. If you're looking for
# a different UTF-8 locale, be aware that some of them do not include
# UTF-8 or utf8 in the name. To test if a locale is UTF-8, use this
# command:
# LANG=<locale> locale -k charmap
# UTF-8 locales will include "UTF-8" in the output.
# If there are problems with certain programs and a UTF-8 locale, you
# can set LANG=C before starting them.
export LANG="${LANG:-en_GB.UTF-8}"
# 'C' is the old Slackware (and UNIX) default, which is 127-bit
# ASCII with a charmap setting of ANSI_X3.4-1968. These days,
# it's better to use en_US or another modern $LANG setting to
# support extended character sets.
# export LANG=${LANG:-C}
# One side effect of the newer locales is that the sort order
# is no longer according to ASCII values, so the sort order will
# change in many places. Since this isn't usually expected and
# can break scripts, we'll stick with traditional ASCII sorting.
# If you'd prefer the sort algorithm that goes with your $LANG
# setting, comment this out.
export LC_COLLATE="${LC_COLLATE:-C}"

10
base-files/profile.d/less.csh Executable file
View file

@ -0,0 +1,10 @@
if ( -X less ) then
# Default options for less.
setenv LESS "-M"
# Pre-process some files for less to display them correctly.
setenv LESSOPEN "|lesspipe.sh %s"
# Use less as the man page viewer.
setenv MANPAGER "less -M"
endif

10
base-files/profile.d/less.sh Executable file
View file

@ -0,0 +1,10 @@
hash less >/dev/null 2>&1 && {
# Default options for less.
export LESS="-M"
# Pre-process some files for less to display them correctly.
export LESSOPEN="|lesspipe.sh %s"
# Use less as the man page viewer.
export MANPAGER="less -M"
}

View file

@ -0,0 +1,35 @@
if ( { [ "`id -u`" = "0" -o "`id -g`" = "0" ] } ) then
set path = ( $path /opt/sbin /opt/bin )
else
set path = ( $path /opt/bin )
endif
if ( ! $?CPATH ) then
setenv CPATH "/opt/include"
else
setenv CPATH "/opt/include:$CPATH"
endif
if ( ! $?INFOPATH ) then
setenv INFOPATH "/opt/info"
else
setenv INFOPATH "/opt/info:$INFOPATH"
endif
if ( ! $?PERL5LIB ) then
setenv PERL5LIB "/opt/lib64/perl5:/opt/lib64/perl5/site_perl"
else
setenv PERL5LIB "/opt/lib64/perl5:/opt/lib64/perl5/site_perl:$PERL5LIB"
endif
if ( ! $?PKG_CONFIG_PATH ) then
setenv PKG_CONFIG_PATH "/opt/lib64/pkgconfig:/opt/share/pkgconfig"
else
setenv PKG_CONFIG_PATH "/opt/lib64/pkgconfig:/opt/share/pkgconfig:$PKG_CONFIG_PATH"
endif
if ( ! $?PYTHONPATH ) then
setenv PYTHONPATH "/opt/lib64/python2.7/site-packages"
else
setenv PYTHONPATH "/opt/lib64/python2.7/site-packages:$PYTHONPATH"
endif

View file

@ -0,0 +1,37 @@
if [ "$(id -u)" = "0" -o "$(id -g)" = "0" ]; then
PATH="$PATH:/opt/sbin:/opt/bin"
else
PATH="$PATH:/opt/bin"
fi
if [ ! -n "$CPATH" ]; then
CPATH="/opt/include"
else
CPATH="/opt/include:$CPATH"
fi
if [ ! -n "$INFOPATH" ]; then
INFOPATH="/opt/info"
else
INFOPATH="/opt/info:$INFOPATH"
fi
if [ ! -n "$PERL5LIB" ]; then
PERL5LIB="/opt/lib64/perl5:/opt/lib64/perl5/site_perl"
else
PERL5LIB="/opt/lib64/perl5:/opt/lib64/perl5/site_perl:$PERL5LIB"
fi
if [ ! -n "$PKG_CONFIG_PATH" ]; then
PKG_CONFIG_PATH="/opt/lib64/pkgconfig:/opt/share/pkgconfig"
else
PKG_CONFIG_PATH="/opt/lib64/pkgconfig:/opt/share/pkgconfig:$PKG_CONFIG_PATH"
fi
if [ ! -n "$PYTHONPATH" ]; then
PYTHONPATH="/opt/lib64/python2.7/site-packages"
else
PYTHONPATH="/opt/lib64/python2.7/site-packages:$PYTHONPATH"
fi
export PATH CPATH INFOPATH PERL5LIB PKG_CONFIG_PATH PYTHONPATH