Move font-terminus from brew to brew-cask list
[khome.git] / home / bin / experiment
CommitLineData
64ec9f23
SK
1#! /bin/sh
2
3set -e;
4
5name="$1";
6
7if [ "$name" != "" ];
8then
9 timestamp=`date +'%F--%H-%M--%S'`;
10 directory="$HOME/Experiments/$timestamp--$name";
11 mkdir -p "$directory";
12 cd "$directory";
13 echo "# $name\n" > README.md;
14 git init >&2
15 git add . >&2
16 git commit -m 'Initial commit' >&2
17 echo "$directory";
18else
19 echo "Please give the experiment a name, as the first argument.";
20 exit 1;
21fi;
This page took 0.046891 seconds and 4 git commands to generate.