
# This file should be sourced (might want next line in your own .alias file)
alias alexaliases 'source /usr/misc/.alex/lib/alexaliases'


# Having . on your path just slows things down a bit  
alias nodot 'setpath PATH -d ""   >& /dev/null; setpath PATH -d "."  >& /dev/null'
alias dottoend 'nodot; setpath PATH -i99 .'


# if you want an accurate long form of ls because stats are very slow
alias alexls /bin/ls


# cd to host name like berkeley.edu  or furmint (cdh expands if needed)
alias cdh 'cd `nametopath \!*`'

# a pushd that takes a hostname argument (i.e. pushd that does cdh and not cd)
alias pushdh 'pushd `nametopath \!*`'


# Mark this directory so that you can come back by typing just the last part.
alias mark 'alias $cwd:t  "cd $cwd"'


# From Dave Eckhardt.  Takes you back up the way you came even with symlinks.
alias .. 'cd ${cwd:h}/\!*'

# When you "can't stat ." you should do this 
alias .  'cd $cwd'

# Causes Alex to get the latest information for the current directory
alias alexu     'cat .alex.update >& /dev/null'

# Causes Alex to fail all outstanding requests from this user for 10 seconds
alias alexdropall     'cat /alex/.alex.dropall >& /dev/null'

# Error messages are just empty files starting with "ALEX:" that go
# away when you do an alexu
alias alexrm alexu


# Some aliases for directories with lots of symlinks
alias cs-tr     'cd /alex/edu/cmu/cs/sp/alex/links/cs-tr'
alias alexlinks 'cd /alex/edu/cmu/cs/sp/alex/links'

alias greprfc   'grep -i \!* /alex/com/sri/nisc/phoebus/rfc/rfc-by-title.txt | sort -n'


