diff options
author | Peter Palfrader <peter@palfrader.org> | 2009-05-08 19:18:59 +0000 |
---|---|---|
committer | weasel <weasel@bc3d92e2-beff-0310-a7cd-cc87d7ac0ede> | 2009-05-08 19:18:59 +0000 |
commit | c28d5941c18751112421ac6acb50b1bd81d784f3 (patch) | |
tree | 4498e6876300cbc4253e5e3764ff9f9d4732afd7 /zshfunc/setup-oftc-aliases | |
parent | 0af45db40a809524fe0b3f7f38d5185717ff8758 (diff) |
two more functions
git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@393 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede
Diffstat (limited to 'zshfunc/setup-oftc-aliases')
-rw-r--r-- | zshfunc/setup-oftc-aliases | 9 |
1 files changed, 9 insertions, 0 deletions
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 |