#shell behaviour
# set prompt string to something informative...
# bold seems to be messing up character wrapping in Apple's terminal. Errr
# but we can still write to the title line without problems.
#bold=`tput bold`
#plain=`tput sgr0`
bold=''
plain=''
titlebar='\[\033]0;\u@\h:\w\007\]'
PS1="${titlebar}${bold}$? \A \u@\h:\W \$${plain}"
export PS1
# make tab completion more useful
set autolist = ambiguous
##conveniences
alias ll='ls -al'
alias l='ls -FH'
alias ..='cd ..'
alias ps2pdf='pstopdf'
alias du='du -h'
# line <number> <filename>
line() {
cat $2 | sed -n "$1 p"
}
mkcd() {
mkdir $1
cd $1
}
##environmental friendliness
#why vi?
export EDITOR=nano
# set this, and manpages don't close without explicit 'q'
export PAGER=less