# The all-mighty profile! # It will always get loaded before the zshrc or bashrc # (or, at least, bashrc and zshrc will source it) if [[ $- != *i* ]] ; then return 1 fi # We will never get farther than this unless we are at an interactive prompt export PROFILE_LOADED=1 #export ECF="woleverd@p`expr '(' $RANDOM % 5 ')' + 1`.ecf.utoronto.ca" export ECF="woleverd@p164.ecf.utoronto.ca" export ES="ensisolutions@ensisolutions.com" export CDF="g7woleve@cdf.toronto.edu" export CS="cs.toronto.edu" export SWC="swc@swc.scipy.org" export TB="thirdbit@third-bit.com" export NFS="wolever_wolever@ssh.phx.nearlyfreespeech.net" export BASIE="-p42 wolever@basieproject.org" export NNTPSERVER='freenews.netfront.net' export NAME="David Wolever" export EDITOR="vim" export PYTHONSTARTUP=~/.pythonrc export LANG="en_US.UTF-8" export LANGUAGE="$LANG" # don't put duplicate lines in the history. See bash(1) for more options export HISTCONTROL=ignoredups # These should be local on machines that don't like the mac's terminal #export TERM="xterm-color" #export TERMINFO="$HOME/.terminfo" function rmext () { find . -name "*.$1" | head echo "Remove all .$1 files?" read RESP [[ "$RESP" =~ [nN] ]] && { echo "Abort."; return 1; } find . -name "*.$1" -delete } alias at="at -v" alias ls="ls --color=auto" alias la="ls -alh" alias grep="grep --color=auto" alias resize="resize; clear" alias ut="tar -xvf" alias py="python" alias ipy="ipython" alias dj="django" alias go="ssh wolever@wolever.net" alias rmorig="rmext orig" alias rmrej="rmext rej" alias glog="hg glog | less" alias viq="vim \`hg root\`/.hg/patches/" for HGCMD in tip qser qpo qpop qpu qpush qfin qref qnew di qdi st push do alias $HGCMD="hg $HGCMD" done alias pull="hg pull; hg rebase" . ~/.profile_local