From e7490eabb03a01ec62d0daf20e96affee72aed5c Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Mon, 19 Feb 2007 22:38:20 +0000 Subject: use hostsoftc, not sudo git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@262 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede --- zshrc | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'zshrc') diff --git a/zshrc b/zshrc index 92c048b..93ddd23 100644 --- a/zshrc +++ b/zshrc @@ -209,16 +209,13 @@ fi if [ "$HOSTNAME" = 'andromeda' ] ; then alias ldapvi-nonanoymous='ldapvi -h localhost -D uid=weasel,ou=users,ou=accounts,dc=oftc,dc=net -b dc=oftc,dc=net' fi -if [ "$HOSTNAME" = 'asteria' ] && [ -x /usr/bin/sudo ] ; then +if [ "$HOSTNAME" = 'asteria' ] && [ -r "$HOME/hostsoftc" ] ; then if [ -e "$HOME/.oftc-port" ]; then oftcircport="--port=`cat $HOME/.oftc-port`" else oftcircport="" fi - ( - sudo cat /home/oftc/hybrid/etc/ircd.conf | $HOME/bin/list-servers - echo "neutron 86.59.21.34" - ) | while read name ip; do + cat "$HOME/hostsoftc" | while read name ip; do alias -g $name-ip="$ip" alias irssi-$name="irssi --home=$HOME/.irssi-$name --connect=$ip --nick=weasel-$name $oftcircport" done @@ -228,10 +225,7 @@ if [ "$HOSTNAME" = 'asteria' ] && [ -x /usr/bin/sudo ] ; then else oftcircport="--port=16667" fi - ( - sudo cat /home/oftc/testnet-hybrid/etc/ircd.conf | $HOME/bin/list-servers - echo "neutron 86.59.21.34" - ) | while read name ip; do + cat "$HOME/hostsoftc" | while read name ip; do alias -g $name-testnet-ip="$ip" alias irssi-testnet-$name="irssi --home=$HOME/.irssi-$name --connect=$ip --nick=weasel-$name $oftcircport" done -- cgit v1.2.3