|
|
git-porno - git-porno - Git Porno |
|
|
 |
git clone git://bitreich.org/git-porno git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/git-porno (git://bitreich.org) |
|
|
 |
Log |
|
|
 |
Files |
|
|
 |
Refs |
|
|
 |
Tags |
|
|
 |
README |
|
|
 |
LICENSE |
|
|
|
--- |
|
|
|
git-porno (576B) |
|
|
|
--- |
|
|
|
1 #!/bin/sh |
|
|
|
2 |
|
|
|
3 mediadir="${GIT_PORNO_MEDIA:-/usr/local/share/git-porno}" |
|
|
|
4 if ! test -d "$mediadir" |
|
|
|
5 then |
|
|
|
6 mediadir="${GIT_PORNO_MEDIA:-/usr/share/git-porno}" |
|
|
|
7 if ! test -d "$mediadir" |
|
|
|
8 then |
|
|
|
9 printf "error: could not find GIT_PORNO_MEDIA directory\n" >&2 |
|
|
|
10 exit 1 |
|
|
|
11 fi |
|
|
|
12 fi |
|
|
|
13 |
|
|
|
14 git_porno_cmd() { |
|
|
|
15 mpv --force-window=no --no-video --no-terminal "${mediadir}/git-$1.opus" & |
|
|
|
16 git "$@" |
|
|
|
17 } |
|
|
|
18 |
|
|
|
19 if test $# -gt 0 |
|
|
|
20 then |
|
|
|
21 case $1 in |
|
|
|
22 add|checkout|cherry-pick|diff|log|pull|push|reset|shortlog) |
|
|
|
23 git_porno_cmd "$@";; |
|
|
|
24 *) |
|
|
|
25 git "$@";; |
|
|
|
26 esac |
|
|
|
27 else |
|
|
|
28 mpv gophers://bitreich.org/9/memecache/git-porno.mkv |
|
|
|
29 fi |
|