72 lines
1.9 KiB
Plaintext
72 lines
1.9 KiB
Plaintext
|
|
||
|
PATH="/usr/local/bin:/usr/bin:/bin:$PATH"
|
||
|
USER="`id -un`"
|
||
|
|
||
|
# The following is the standard idiom for processing ENVIRON in
|
||
|
# *interactive* shells only.
|
||
|
export ENV='${ENVIRON[(_$-=1)+(_=0)-(_$-!=_${-%%*i*})]}'
|
||
|
|
||
|
# The following is a simple definition that will process ENVIRON in
|
||
|
# *all* shells.
|
||
|
export ENV="$ENVIRON"
|
||
|
|
||
|
# Set up USER's home directory
|
||
|
if [ -z "$HOME" ]; then
|
||
|
HOME="/home/$USER"
|
||
|
fi
|
||
|
|
||
|
if [ ! -d "$HOME" ]; then
|
||
|
mkdir -p "$HOME"
|
||
|
fi
|
||
|
|
||
|
export HOME USER
|
||
|
|
||
|
for i in /etc/profile.d/*.sh ; do
|
||
|
if [ -f $i ]; then
|
||
|
. $i
|
||
|
fi
|
||
|
done
|
||
|
|
||
|
export MAKE_MODE=unix
|
||
|
export PS1='\[\033]0;\w\007
|
||
|
\033[32m\]\u@\h \[\033[33m\w\033[0m\]
|
||
|
$ '
|
||
|
|
||
|
#cd "$HOME"
|
||
|
|
||
|
# Automated form using the environment variables
|
||
|
# set the development paths in the original form and the script will
|
||
|
# automatically pick them up.
|
||
|
subst i: $DEVDRV_I> /dev/null 2>&1
|
||
|
subst j: $DEVDRV_J> /dev/null 2>&1
|
||
|
subst k: $DEVDRV_K> /dev/null 2>&1
|
||
|
subst l: $DEVDRV_L> /dev/null 2>&1
|
||
|
subst m: $DEVDRV_M> /dev/null 2>&1
|
||
|
|
||
|
# The original form
|
||
|
#subst k: c:/dev/SecretStore~security#IndiaRO/SecretStore/SecretStore_src> /dev/null 2>&1
|
||
|
#subst j: c:/dev/SecretStore_src~cameron3/SecretStore_src> /dev/null 2>&1
|
||
|
#subst i: c:/dev/SecretStore_src~cameron2/SecretStore_src> /dev/null 2>&1
|
||
|
#subst l: c:/dev/SecretStore_doc~cameron_ss20/SecretStore_doc> /dev/null 2>&1
|
||
|
#subst m: c:/dev/SecretStore_doc~cameron/SecretStore_doc> /dev/null 2>&1
|
||
|
|
||
|
|
||
|
test -f ./.bashrc && . ./.bashrc
|
||
|
|
||
|
alias a:="cd a:" b:="cd b:" c:="cd c:" d:="cd d:" e:="cd e:" j:="cd j:"
|
||
|
alias md=mkdir rd=rmdir i:="cd i:" h:="cd h:" f:="cd f:" k:="cd k:" "n:=cd n:"
|
||
|
alias "o:=cd o:"
|
||
|
export SWITCHAR=${SWITCHAR:=/} # if not already defined
|
||
|
export COMSPEC="${COMSPEC:=$ComSpec}"
|
||
|
export TOOLS="c:/tools/"
|
||
|
|
||
|
for arg in cls copy del dir erase move path ren type ver verify vol
|
||
|
do
|
||
|
alias $arg="'${COMSPEC}' ${SWITCHAR}c $arg"
|
||
|
done
|
||
|
|
||
|
PS1='[$PWD] '
|
||
|
set -o emacs
|
||
|
cd j:
|
||
|
|