diff options
| author | Joshua Peek <josh@joshpeek.com> | 2012-12-10 09:45:54 -0600 |
|---|---|---|
| committer | Joshua Peek <josh@joshpeek.com> | 2012-12-10 09:45:54 -0600 |
| commit | 7c170972a07b3b3d3c28624e1a2228cbe57a728f (patch) | |
| tree | dafe619aa74e8fb9a07ba018c5d808e738264121 /samples/Shell/filenames/.bash_profile | |
| parent | d00dfd82c1170bd84c8616c34dd8a869058e49af (diff) | |
Add shell samples
Diffstat (limited to 'samples/Shell/filenames/.bash_profile')
| -rw-r--r-- | samples/Shell/filenames/.bash_profile | 37 |
1 files changed, 36 insertions, 1 deletions
diff --git a/samples/Shell/filenames/.bash_profile b/samples/Shell/filenames/.bash_profile index b7edb8a..319c25c 100644 --- a/samples/Shell/filenames/.bash_profile +++ b/samples/Shell/filenames/.bash_profile @@ -1 +1,36 @@ -export PATH="/usr/local/bin:/usr/bin:/bin" +## +# 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" |
