diff options
Diffstat (limited to 'zshrc')
-rw-r--r-- | zshrc | 12 |
1 files changed, 3 insertions, 9 deletions
@@ -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 |