dot

packages and services management
Log | Files | Refs | README

commit 858868feb689ec74c9c4daa898f5fc8aeebb2025
parent 5edb9bec4b2f5c15fa06f35e1c4a87f2c3ab059b
Author: Josuah Demangeon <mail@josuah.net>
Date:   Sun,  8 Jul 2018 14:29:27 +0200

Merge branch 'master' of josuah.net:conf

Diffstat:
Dbin/git-static | 43-------------------------------------------
Mdot/git | 2+-
Mdot/profile | 5+----
3 files changed, 2 insertions(+), 48 deletions(-)

diff --git a/bin/git-static b/bin/git-static @@ -1,43 +0,0 @@ -#!/bin/sh -e - -test $# = 2 || exec echo "usage: $(basename "$0") base bare-repo" - -fmt='%H %ad %an <%ae>%n%s%n' -name=$(basename "$2" .git) -desc=$(test -f "$2/description" && sed q "$2/description") - -git -C "$2" log --format='%H' | while read h -do test -f "$h.txt" || git -C "$2" show -u --stat "$h" >$h.txt -done - -exec >index.gph -echo -echo "$name - $desc" -echo -git -C "$2" log --expand-tabs=8 --graph --date=short --format="$fmt" | -awk -v prefix="$1" ' - match($0, "[0-9a-f]{40}") { - gsub("[]\\\\|[]", "\\\\&"); - printf("[%s|/0/%s/%s.txt|server|port]\n", - substr($0, 1, RSTART) \ - substr($0, RSTART, 8) \ - substr($0, RSTART + RLENGTH), - prefix, - substr($0, RSTART, RLENGTH)); - next; - } - 1 -' - -exec >index.html -echo '<!doctype html><meta charset="UTF-8"/>' -echo "<title>$name</title><h1>$name - $desc</h1>" -echo '<pre>' -git -C "$2" log --graph --date=short --format="$fmt" | sed -r ' - s,&,\&amp;,g - s,<,\&lt;,g - s,>,\&gt;,g - s,",\&quot;,g - s,([0-9a-f]{8})([0-9a-f]{32}),<a href="\1\2.txt">\1</a>, -' -echo '</pre>' diff --git a/dot/git b/dot/git @@ -3,7 +3,7 @@ name = Josuah Demangeon [color] - ui = never + ui = auto [core] editor = edit diff --git a/dot/profile b/dot/profile @@ -1,8 +1,6 @@ # Basic -export NAME='Josuah Demangeon' export TZ=Europe/Paris -export NICK=josuah export EMAIL=mail@josuah.net export EDITOR=edit export VISUAL=edit @@ -35,7 +33,6 @@ export SSH_AUTH_SOCK=$HOME/.ssh/agent # Prompt export PS1='$(test $? = 0 || printf "\\033[1;31mx\\033[m\n\r")' -export PS1=$PS1$(printf '\n\033];$PWD\a') -export PS1=$PS1$(uname -n) +export PS1=$PS1$(printf '\033];$PWD\a\n'; uname -n) export PS1=$PS1$(test "$(whoami)" = root && echo '#' || echo '$') export PS1=$PS1' '