# Atomicorp : Atomic Secured Linux
# This is a replacement bash profile script for cpanel environments. Overwriting /etc/bashrc is not a good idea.
# All cpanel functions are re-implemented in here, except break the prompt or X integration.

umask 022

whoami=`whoami`
if [ -e "~/.dns" ]; then
        DNS=`cat ~/.dns`
        # no.
        #PS1="\u@$DNS [\w]# "
else
        if [ -e "/var/cpanel/users/$whoami" ]; then
                eval `grep DNS= /var/cpanel/users/$whoami`

                if [ ! "$DNS" = "" ]; then
                        echo -n "$DNS" > ~/.dns
                        # No. 
                        #PS1="\u@$DNS [\w]# "
                fi
        fi
fi

if [ ! -e ~/public_html/cgi-bin ]; then
        mkdir -p ~/public_html/cgi-bin
fi
if [ ! -e ~/public_ftp ]; then
        mkdir -p ~/public_ftp
fi


# This isnt exactly a good idea guys.
mesg y

alias wtf="watch -n 1 w -hs"
alias wth="ps -uxa | more"
# Now for the dos users
alias dir="ls"
alias copy="cp"
alias del="rm"
alias deltree="rm -r"
alias move="mv"
alias ff="whereis"
alias attrib="chmod"
alias edit="pico"
alias chdir="cd"
alias mem="top"
alias search="grep"
alias pico="pico -w -z"


LS_OPTIONS='--color=tty -F -a -b -T 0';
export LS_OPTIONS;
# No. Leave it alone.
#alias ls='/bin/ls $LS_OPTIONS';
alias dir='/bin/ls $LS_OPTIONS --format=vertical';
alias vdir='/bin/ls $LS_OPTIONS --format=long';
alias d=dir;
alias v=vdir;
eval `dircolors -b`

export JAVA_HOME=/usr/local/jdk
export PATH=$JAVA_HOME/bin:$PATH
export CLASSPATH=.:$JAVA_HOME/lib/classes.zip
export PATH="$PATH:/usr/local/bin:/usr/X11R6/bin"

