Stay bellow 80 cols
[khome.git] / home / bin / x
... / ...
CommitLineData
1#! /bin/sh
2
3set -e;
4
5README='README.md'
6
7name=$(echo "$@" | sed 's/\s\+/-/g');
8timestamp=$(date +'%F--%H-%M-%S');
9directory="$HOME/x/$timestamp--$name";
10mkdir -p "$directory";
11cd "$directory";
12printf '%s\n' "$name" > "$README";
13seq 79 | xargs | sed -E 's/\s*[0-9]+\s*/=/g' >> "$README"
14git init >&2
15git commit --allow-empty -m 'Root commit' >&2
16git add . >&2
17git commit -m 'Initial commit' >&2
18echo "$directory";
This page took 0.021301 seconds and 4 git commands to generate.