Mercurial > index.cgi > dotfiles
diff .bash_aliases @ 51:44c36681ca0f
* Removed many double quotes from tests; they caused the tests to pass on
the CentOS 5.5 hosts but fail on Macs. Without the quotes they work
properly everywhere tested.
* Added tests for Intel compiler paths already existing, as well as Condor
* New aliases: pine, ldm, lds, ldsloop, hostmaster
author | huston@80426f53-59d1-405d-934b-f07cd76f4a1a |
---|---|
date | Fri, 03 Jun 2011 18:56:35 +0000 |
parents | 407b3bac9cb0 |
children | 1f84b0ddf24b |
line wrap: on
line diff
--- a/.bash_aliases Sat May 21 14:46:13 2011 +0000 +++ b/.bash_aliases Fri Jun 03 18:56:35 2011 +0000 @@ -71,6 +71,7 @@ alias base64='openssl enc -a' alias bsr='bigscreen -raAx' alias irssi-test='irssi --home=$HOME/irssi-test/' +alias pine='alpine' alias ret='screen -raAx' alias rot13="tr 'a-zA-Z' 'n-za-mN-ZA-M'" alias stendhal="java -jar $HOME/Installs/stendhal/stendhal-*.jar" @@ -85,11 +86,23 @@ alias ssy="sshfs -oreconnect${DARWIN:+,volname=Syrinx} syrinx.astro.princeton.edu: $HOME/syrinx" alias sx="sshfs -oreconnect${DARWIN:+,volname=Xanadu} xanadu.astro.princeton.edu: $HOME/xanadu" +# LDAP/host tools +alias ldm="ldapmodify -Z -x -W -c -D 'cn=DrAdmin,dc=astro,dc=princeton,dc=edu'" +alias ldsloop='while true; do read; clear; lds "$REPLY"; done' +alias hostmaster='ssh -x -a huston@arizona.princeton.edu /usr/oit/bin/hostinfo' + # Other alias condor_check="ls -lat /u/condor/hosts/*/log/MasterLog /scr/chimera0/condor/hosts/*/log/MasterLog" alias slurp="wget -r -l1 -np -nd -A.mp3" -# Functions +# Other Functions + +lds() { + QUERY="$1" + shift + ldapsearch -LLL -x "($QUERY)" $@ +} + update_toodledo() { case `hostname -s` in xanadu|syrinx)