From c28d5941c18751112421ac6acb50b1bd81d784f3 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Fri, 8 May 2009 19:18:59 +0000 Subject: two more functions git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@393 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede --- zshfunc/setup-oftc-aliases | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 zshfunc/setup-oftc-aliases (limited to 'zshfunc/setup-oftc-aliases') diff --git a/zshfunc/setup-oftc-aliases b/zshfunc/setup-oftc-aliases new file mode 100644 index 0000000..d7c310e --- /dev/null +++ b/zshfunc/setup-oftc-aliases @@ -0,0 +1,9 @@ +## vim:ft=zsh:foldmethod=marker + +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 -- cgit v1.2.3