A lot of work on the presentation
The shell auto-image now runs code and turns the output into an image that is embedded into the document The prompt is configurable in /bin/prompt The first draft is done up until the references section
This commit is contained in:
parent
63c02e13f9
commit
22ef5f581d
15 changed files with 584 additions and 61 deletions
20
shell/first-cat-commit-file
Executable file
20
shell/first-cat-commit-file
Executable file
|
@ -0,0 +1,20 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
cd /tmp/demo
|
||||
|
||||
currentCommit="$(git rev-parse HEAD)"
|
||||
fileName="$(echo $currentCommit | sed 's/\(..\)/\1\//')"
|
||||
echo -e "\$ zlib-flate -uncompress < .git/objects/$fileName"
|
||||
zlib-flate -uncompress < ".git/objects/$fileName" | tr '\000' '␀'
|
||||
echo "\$ zlib-flate -uncompress < .git/objects/$fileName | sha1sum"
|
||||
echo -e "$currentCommit"
|
||||
|
||||
currentCommitTree="$(git cat-file -p $currentCommit | grep tree | cut -d' ' -f2)"
|
||||
echo "\$ git cat-file -p $(echo $currentCommitTree | grep -o '^.......') "
|
||||
git -c color.ui=always cat-file -p "$currentCommitTree"
|
||||
|
||||
aFile="$(git cat-file -p $currentCommitTree | grep blob | head -n 1 | cut -d' ' -f3 | cut -d' ' -f1)"
|
||||
echo "\$ git cat-file -p $(echo $aFile | grep -o '^.......') "
|
||||
git -c color.ui=always cat-file -p "$aFile"
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue