summaryrefslogtreecommitdiff
path: root/zshrc
diff options
context:
space:
mode:
authorPeter Palfrader <peter@palfrader.org>2007-02-19 22:38:20 +0000
committerweasel <weasel@bc3d92e2-beff-0310-a7cd-cc87d7ac0ede>2007-02-19 22:38:20 +0000
commite7490eabb03a01ec62d0daf20e96affee72aed5c (patch)
tree479646a175a5bb3598398f34f9be5bc5d0327630 /zshrc
parentdf8236d9006c66d91868cad4a6f82645e068c1bd (diff)
use hostsoftc, not sudo
git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@262 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede
Diffstat (limited to 'zshrc')
-rw-r--r--zshrc12
1 files changed, 3 insertions, 9 deletions
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