summaryrefslogtreecommitdiff
path: root/zshrc
diff options
context:
space:
mode:
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