# .bash_profile
#
# NetYCE, 2021
#

if [ -r "/opt/yce/system/go" ]; then
    source "/opt/yce/system/go"
else
    echo "Skipping 'go'"
fi

export PATH="$PATH:/sbin:/usr/sbin:/usr/local/sbin:/bin:/usr/bin:/usr/local/bin:/opt/yce/bin:/opt/yce/system:$HOME/.local/bin:."

export LD_LIBRARY_PATH="/lib:/usr/lib:/usr/local/lib:/usr/local/lib64"
export LC_CTYPE="en_US.UTF-8"
export LC_ALL=C
export EDITOR=vim
export justread='Z21uZ21oaHc='

if [ "${TERM}x" = "x" ]; then
    export TERM=ansi
    stty erase 
fi
if [ "$TERM" = "ansi" ]; then
    stty erase 
fi

set -o emacs
umask 0002

export PS1='\e[32m\u@\h\e[0m \w\n\$ '

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
    . ~/.bashrc
fi

if [ -f /etc/DIR_COLORS ]; then
    # eval `dircolors -b /etc/DIR_COLORS | sed 's/di=01;93/di=01;34/'`
    alias ls='ls -N --color=tty -T 0 '
fi

# other
alias perl='/opt/ycelib/perl/bin/perl'
alias perldoc='/opt/ycelib/perl/bin/perldoc'
alias cpanm='/opt/ycelib/perl/bin/cpanm'
alias perlcritic='/opt/ycelib/perl/bin/perlcritic'
# alias python='/usr/bin/python3'

if [ -x /opt/yce/system/tools/srch.pl ]; then
    alias srch='/opt/yce/system/tools/srch.pl'
fi
