summaryrefslogtreecommitdiff
path: root/zshfunc/setup-oftc-aliases
blob: e1e12a90bad8509b3e42ca5856e2083663e1ea41 (plain)
1
2
3
4
5
6
7
8
9
10
## vim:ft=zsh:foldmethod=marker

local name ip
cat "$HOME/.oftc-hosts" | while read name ip; do
	alias -g $name-ip="$ip"
	alias irssi-$name="irssi --home=$HOME/.irssi-MASTER --connect=OFTC-$name"

	alias -g $name-testnet-ip="$ip"
	alias irssi-testnet-$name="irssi --home=$HOME/.irssi-MASTER --connect=TESTNET-$name"
done