new script to create a new project

This commit is contained in:
Sami Samhuri 2010-11-08 20:28:17 -08:00
parent 067eeebafb
commit aa73e7caf9

14
proj Executable file
View file

@ -0,0 +1,14 @@
#!/bin/sh
bail() {
echo "$@" >&2
exit 1
}
p="$HOME/Projects/$1"
[[ -d "$p" ]] && bail "project exists"
mkdir "$p"
cd "$p"
git init
touch Readme.md LICENSE
$VISUAL .