[ -z "$PS1" ] && return
#
# Colors
#
B=1; N=0
BLK=30; RED=31; GRN=32; YLW=33; BLU=34; VLT=35; CYN=36; WHT=37
for s in B N ; do
	for c in BLK RED GRN YLW BLU VLT CYN WHT ; do
		o='\[\e['\$\{${s}\}';'\$\{${c}\}'m\]'
		eval ${s}_${c}=\"$o\"
	done
done
NRM="\[\e[m\]"

C1=$B_GRN
C2=$B_BLU
C3=$B_YLW
Cx=$N_BLK
PS1="$Cx[$C1\u$Cx]@$Cx[$C3\H$Cx]$C2\w$Cx[$C1\t$Cx]$NRM> "

export EDITOR=vi
export PAGER=less

HISTCONTROL=ignoreboth
shopt -s histappend
HISTSIZE=1000
HISTFILESIZE=2000
PATH=$PATH:$HOME/bin

[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"

bind '"\e[A":history-search-backward'
bind '"\e[B":history-search-forward'
set show-all-if-ambiguous on
set completion-ignore-case on
set bind-tty-special-chars off
stty werase undef
bind '"\C-w":backward-kill-word'

if [ -x /usr/bin/dircolors ]; then
	test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
	alias ls='ls --color=auto'
	alias grep='grep --color=auto'
	alias fgrep='fgrep --color=auto'
	alias egrep='egrep --color=auto'
fi

export GREP_COLOR="1;32"

echo "==================================================================================="
last -20
echo "==================================================================================="
w
echo "==================================================================================="
