Initial commit

This commit is contained in:
Eryn Wells 2011-05-03 21:53:50 -07:00
commit 662fe0334c
37 changed files with 1614 additions and 0 deletions

11
zsh/func/mkcmod Normal file
View file

@ -0,0 +1,11 @@
#!/bin/zsh
# vim:ft=zsh
mkcmod ()
{
if [[ $1 == "" ]]; then
echo "Usage: $0 mod_name"
else
touch $1.{c,h}
fi
}

13
zsh/func/mkmdir Normal file
View file

@ -0,0 +1,13 @@
#!/bin/zsh
# vim:ft=zsh
# make a Maildir directory
mkmdir ()
{
if [[ $1 == "" ]]; then
echo "Usage: $0 mdir_name"
else
mkdir -p $1/{new,cur,tmp}
fi
}

12
zsh/func/pw Normal file
View file

@ -0,0 +1,12 @@
#!/bin/zsh
# vim:ft=zsh
pw ()
{
length='12'
if [[ $1 -ne "" ]]; then
length=$1
fi
tr -dc 'A-Za-z0-9!@#$%^&*' < /dev/urandom | fold -w $length | head -n 1
}

12
zsh/func/wiki Normal file
View file

@ -0,0 +1,12 @@
#!/bin/zsh
# vim:ft=zsh
wiki ()
{
if [[ $1 == "" ]]; then
echo "Usage: wiki [term]"
else
dig +short txt $1.wp.dg.cx
fi
}