From 7c170972a07b3b3d3c28624e1a2228cbe57a728f Mon Sep 17 00:00:00 2001 From: Joshua Peek Date: Mon, 10 Dec 2012 09:45:54 -0600 Subject: Add shell samples --- samples/Shell/filenames/bash_profile | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 samples/Shell/filenames/bash_profile (limited to 'samples/Shell/filenames/bash_profile') diff --git a/samples/Shell/filenames/bash_profile b/samples/Shell/filenames/bash_profile new file mode 100644 index 0000000..319c25c --- /dev/null +++ b/samples/Shell/filenames/bash_profile @@ -0,0 +1,36 @@ +## +# Environment... +## +# Set up some variables for 'screen' +if [ -z "${SCREENDIR}" ];then echo -n + export SCREENDIR="${HOME}/.screen" + # Save my screen sockets within my $HOME dir +fi +## PATH +export PATH=/usr/local/bin:/usr/local/sbin:/usr/xpg4/bin:/usr/sbin:/usr/bin:/usr/sfw/bin:/usr/ccs/bin:/usr/openwin/bin:/opt/mysql/current/bin +export MANPATH=/usr/local/man:/usr/share/man + +## Random ENV... +# Set $TERM to 'vt100' (a safe default) if, for some +# reason, it is set to 'network' (which is not valid!) +if [ ${TERM} == 'network' ];then echo -n + export TERM='vt100' + # not 'nsterm' because if its 'network' we're + # probly not in Terminal.app +fi +# Set $COLORTERM, all this does is trick *some* apps into +# using color in the terminal, which should happen anyway. +if [ -z "${COLORTERM}" ];then echo -n + export COLORTERM="${TERM}" +fi +# another color option, this one for BSD's ls +if [ -z "${CLICOLOR}" ];then echo -n + export CLICOLOR='1' # can be set to anything, actually +fi +# If $DISPLAY is not already set, set it! +if [ -z "${DISPLAY}" ];then echo -n + export DISPLAY=':0' +fi +## +# Source the bash rc file +[ -r "${HOME}/.bashrc" ] && . "${HOME}/.bashrc" -- cgit v1.2.3