diff options
author | Peter Palfrader <peter@palfrader.org> | 2006-06-03 11:34:13 +0000 |
---|---|---|
committer | weasel <weasel@bc3d92e2-beff-0310-a7cd-cc87d7ac0ede> | 2006-06-03 11:34:13 +0000 |
commit | 6dd440373b52d6831ac19475735bb5f02ba88b7f (patch) | |
tree | 2f007bb58320fb3191d3483013cff7f10065e195 | |
parent | 00d7bcaef63c440c65c7cd2b3a5dc78c11c58db5 (diff) |
Set ircport in alias
git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@116 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede
-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 |