diff options
-rw-r--r-- | zshrc | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -207,15 +207,17 @@ if [ "$HOSTNAME" = 'thetis' ] ; then alias ldapvi='ldapvi -h localhost -D cn=admin,o=ab.office.dibral.at -w `grep bindpw $HOME/.noreply.ldap | cut -d" " -f 2`' fi if [ "$HOSTNAME" = 'asteria' ] && [ -x /usr/bin/sudo ] ; 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" - #echo "plasma 2001:968:1::6666" - #echo "venus6 2001:780:0:1c:42:42:42:42" - #echo "nobelium6 2001:618:400:a635::3:750" ) | while read name ip; do alias -g $name-ip="$ip" - alias irssi-$name="irssi --home=$HOME/.irssi-$name --connect=$ip --nick=weasel-$name" + alias irssi-$name="irssi --home=$HOME/.irssi-$name --connect=$ip --nick=weasel-$name $oftcircport" done ( @@ -223,7 +225,7 @@ if [ "$HOSTNAME" = 'asteria' ] && [ -x /usr/bin/sudo ] ; then echo "neutron 86.59.21.34" ) | while read name ip; do alias -g $name-testnet-ip="$ip" - alias irssi-testnet-$name="irssi --home=$HOME/.irssi-$name --connect=$ip --port=16667 --nick=weasel-$name" + alias irssi-testnet-$name="irssi --home=$HOME/.irssi-$name --connect=$ip --port=16667 --nick=weasel-$name $oftcircport" done fi |