From 90195e5a1f9e05665271876158426514f3a44f26 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Sun, 25 Jun 2006 15:38:33 +0000 Subject: Handle testnet port git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@150 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede --- zshrc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'zshrc') diff --git a/zshrc b/zshrc index 8f8c60b..5f68a30 100644 --- a/zshrc +++ b/zshrc @@ -220,6 +220,11 @@ if [ "$HOSTNAME" = 'asteria' ] && [ -x /usr/bin/sudo ] ; then alias irssi-$name="irssi --home=$HOME/.irssi-$name --connect=$ip --nick=weasel-$name $oftcircport" done + if [ -e "$HOME/.oftc-testnet-port" ]; then + oftcircport="--port=`cat $HOME/.oftc-testnet-port`" + else + oftcircport="" + fi ( sudo cat /home/oftc/testnet-hybrid/etc/ircd.conf | $HOME/bin/list-servers echo "neutron 86.59.21.34" -- cgit v1.2.3