Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
yaroot committed Oct 25, 2014
1 parent 4ebd86f commit 10e7485
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions irssi_scripts.sh
@@ -0,0 +1,31 @@
#!/bin/sh

mkdir -p $HOME/.irssi/scripts/autorun

pushd $HOME/.irssi > /dev/null

if [ -d '_source' ]; then
pushd _source > /dev/null
git fetch
git feset --hard origin/gh-pages
popd > /dev/null
else
git clone git://github.com/irssi/scripts.irssi.org.git _source
fi

link() {
ln -sv ../_source/scripts/$1 .
}

pushd scripts/autorun > /dev/null

if [ `pwd` = "$HOME/.irssi/scripts/autorun" ]; then
rm *.pl
fi

link 'dispatch.pl'
link 'nickcolor.pl'
link 'nicklist.pl'
link 'splitlong.pl'
link 'usercount.pl'

0 comments on commit 10e7485

Please sign in to comment.