#
# .bashrc
#

# set up default variables again...
PATH=$HOME/bin:/usr/swat/bin:/usr/local/bin:/usr/bin:/bin:/sbin:/usr/sbin:/usr/X11R6/bin
MANPATH=/usr/local/man:/usr/share/man:/usr/X11R6/man:/usr/swat/man
PAGER='less -Em'
PRINTER='TheDicer'
PS1='\h[\W]\$ '
PS2='more> '
EDITOR=emacs
VISUAL=emacs
RSYNC_RSH=/usr/local/bin/ssh 
XAPPLRESDIR=/usr/local/lib/app-defaults

umask 022

export PAGER PRINTER PS1 PS2 EDITOR VISUAL PATH MANPATH
export RSYNC_RSH XAPPLRESDIR 

HISTSIZE=50
HISTFILESIZE=25

# ---------------------------------------------------------------
# aliases 
alias back='cd $OLDPWD'
alias ls='ls -CF'
alias ll='ls -l'
alias la='ls -a'
alias lal='ls -al'
alias lnew='ls -alt | head -16'
alias rm='rm -i'
alias h='history'
alias c='/usr/ucb/clear'
alias df='df -k'
alias du='du -k'
alias land='enscript -2rhGj'
alias l1='enscript -1rhGj'
alias dice='PRINTER=TheDicer; export PRINTER'
alias mince='PRINTER=TheMincer; export PRINTER'
alias slice='PRINTER=TheSlicer; export PRINTER'
alias shred='PRINTER=TheShredder; export PRINTER'
alias xlock='/usr/local/bin/xlock -remote -mode dclock -mono -nice 10'

# shell functions
function mp4 { mpage -4f  $1 | lp; }
function mp4l { mpage -4fl $1 | lp; }
function mp2 { mpage -2f $1 | lp; }
function mp2l { mpage -2fl $1 | lp; }
function p4 { psf -4e  $1 | lp; }
function p4w { psf -4ew  $1 | lp; }