summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authordakkar <dakkar@thenautilus.net>2016-02-03 09:20:24 +0000
committerdakkar <dakkar@thenautilus.net>2016-02-03 09:20:42 +0000
commitc5e3fd78c7aaecc876ef01c3cda308bdfd9ed436 (patch)
tree6c0347d7fd98e6e4b0092849aa4c5d424e7186ed /bin
parentsmarter set-screen (diff)
downloadmisc-scripts-c5e3fd78c7aaecc876ef01c3cda308bdfd9ed436.tar.gz
misc-scripts-c5e3fd78c7aaecc876ef01c3cda308bdfd9ed436.tar.bz2
misc-scripts-c5e3fd78c7aaecc876ef01c3cda308bdfd9ed436.zip
various pieces
Diffstat (limited to 'bin')
l---------bin/git-logc1
-rw-r--r--bin/pygments-default.css63
-rw-r--r--bin/pygments-long.css50
-rwxr-xr-xbin/rst2html4
4 files changed, 117 insertions, 1 deletions
diff --git a/bin/git-logc b/bin/git-logc
new file mode 120000
index 0000000..8c863a3
--- /dev/null
+++ b/bin/git-logc
@@ -0,0 +1 @@
+../src/git-prompt/git-logc \ No newline at end of file
diff --git a/bin/pygments-default.css b/bin/pygments-default.css
new file mode 100644
index 0000000..d96c334
--- /dev/null
+++ b/bin/pygments-default.css
@@ -0,0 +1,63 @@
+/* generated with ``pygmentize -S default -f html -a pre.code`` */
+pre.code .hll { background-color: #ffffcc }
+pre.code { background: #f8f8f8; }
+pre.code .c { color: #408080; font-style: italic } /* Comment */
+pre.code .err { border: 1px solid #FF0000 } /* Error */
+pre.code .k { color: #008000; font-weight: bold } /* Keyword */
+pre.code .o { color: #666666 } /* Operator */
+pre.code .cm { color: #408080; font-style: italic } /* Comment.Multiline */
+pre.code .cp { color: #BC7A00 } /* Comment.Preproc */
+pre.code .c1 { color: #408080; font-style: italic } /* Comment.Single */
+pre.code .cs { color: #408080; font-style: italic } /* Comment.Special */
+pre.code .gd { color: #A00000 } /* Generic.Deleted */
+pre.code .ge { font-style: italic } /* Generic.Emph */
+pre.code .gr { color: #FF0000 } /* Generic.Error */
+pre.code .gh { color: #000080; font-weight: bold } /* Generic.Heading */
+pre.code .gi { color: #00A000 } /* Generic.Inserted */
+pre.code .go { color: #808080 } /* Generic.Output */
+pre.code .gp { color: #000080; font-weight: bold } /* Generic.Prompt */
+pre.code .gs { font-weight: bold } /* Generic.Strong */
+pre.code .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
+pre.code .gt { color: #0040D0 } /* Generic.Traceback */
+pre.code .kc { color: #008000; font-weight: bold } /* Keyword.Constant */
+pre.code .kd { color: #008000; font-weight: bold } /* Keyword.Declaration */
+pre.code .kn { color: #008000; font-weight: bold } /* Keyword.Namespace */
+pre.code .kp { color: #008000 } /* Keyword.Pseudo */
+pre.code .kr { color: #008000; font-weight: bold } /* Keyword.Reserved */
+pre.code .kt { color: #B00040 } /* Keyword.Type */
+pre.code .m { color: #666666 } /* Literal.Number */
+pre.code .s { color: #BA2121 } /* Literal.String */
+pre.code .na { color: #7D9029 } /* Name.Attribute */
+pre.code .nb { color: #008000 } /* Name.Builtin */
+pre.code .nc { color: #0000FF; font-weight: bold } /* Name.Class */
+pre.code .no { color: #880000 } /* Name.Constant */
+pre.code .nd { color: #AA22FF } /* Name.Decorator */
+pre.code .ni { color: #999999; font-weight: bold } /* Name.Entity */
+pre.code .ne { color: #D2413A; font-weight: bold } /* Name.Exception */
+pre.code .nf { color: #0000FF } /* Name.Function */
+pre.code .nl { color: #A0A000 } /* Name.Label */
+pre.code .nn { color: #0000FF; font-weight: bold } /* Name.Namespace */
+pre.code .nt { color: #008000; font-weight: bold } /* Name.Tag */
+pre.code .nv { color: #19177C } /* Name.Variable */
+pre.code .ow { color: #AA22FF; font-weight: bold } /* Operator.Word */
+pre.code .w { color: #bbbbbb } /* Text.Whitespace */
+pre.code .mf { color: #666666 } /* Literal.Number.Float */
+pre.code .mh { color: #666666 } /* Literal.Number.Hex */
+pre.code .mi { color: #666666 } /* Literal.Number.Integer */
+pre.code .mo { color: #666666 } /* Literal.Number.Oct */
+pre.code .sb { color: #BA2121 } /* Literal.String.Backtick */
+pre.code .sc { color: #BA2121 } /* Literal.String.Char */
+pre.code .sd { color: #BA2121; font-style: italic } /* Literal.String.Doc */
+pre.code .s2 { color: #BA2121 } /* Literal.String.Double */
+pre.code .se { color: #BB6622; font-weight: bold } /* Literal.String.Escape */
+pre.code .sh { color: #BA2121 } /* Literal.String.Heredoc */
+pre.code .si { color: #BB6688; font-weight: bold } /* Literal.String.Interpol */
+pre.code .sx { color: #008000 } /* Literal.String.Other */
+pre.code .sr { color: #BB6688 } /* Literal.String.Regex */
+pre.code .s1 { color: #BA2121 } /* Literal.String.Single */
+pre.code .ss { color: #19177C } /* Literal.String.Symbol */
+pre.code .bp { color: #008000 } /* Name.Builtin.Pseudo */
+pre.code .vc { color: #19177C } /* Name.Variable.Class */
+pre.code .vg { color: #19177C } /* Name.Variable.Global */
+pre.code .vi { color: #19177C } /* Name.Variable.Instance */
+pre.code .il { color: #666666 } /* Literal.Number.Integer.Long */
diff --git a/bin/pygments-long.css b/bin/pygments-long.css
new file mode 100644
index 0000000..b3eed1c
--- /dev/null
+++ b/bin/pygments-long.css
@@ -0,0 +1,50 @@
+/* example stylesheet for Docutils */
+
+/* :Author: Günter Milde */
+/* :Copyright: © 2012 G. Milde */
+/* :License: This stylesheet is placed in the public domain. */
+
+/* Syntax highlight rules for HTML documents generated with Docutils */
+/* using the ``--syntax-highlight=long`` option (new in v. 0.9). */
+
+/* This stylesheet implements Pygment's "default" style with less rules than */
+/* pygments-default using class hierarchies. */
+/* Use it as example for "handcrafted" styles with only few rules. */
+
+.code { background: #f8f8f8; }
+.code .comment { color: #008800; font-style: italic }
+.code .error { border: 1px solid #FF0000 }
+.code .generic.deleted { color: #A00000 }
+.code .generic.emph { font-style: italic }
+.code .generic.error { color: #FF0000 }
+.code .generic.heading { color: #000080; font-weight: bold }
+.code .generic.inserted { color: #00A000 }
+.code .generic.output { color: #808080 }
+.code .generic.prompt { color: #000080; font-weight: bold }
+.code .generic.strong { font-weight: bold }
+.code .generic.subheading { color: #800080; font-weight: bold }
+.code .generic.traceback { color: #0040D0 }
+.code .keyword { color: #AA22FF; font-weight: bold }
+.code .keyword.pseudo { font-weight: normal }
+.code .literal.number { color: #666666 }
+.code .literal.string { color: #BB4444 }
+.code .literal.string.doc { color: #BB4444; font-style: italic }
+.code .literal.string.escape { color: #BB6622; font-weight: bold }
+.code .literal.string.interpol { color: #BB6688; font-weight: bold }
+.code .literal.string.other { color: #008000 }
+.code .literal.string.regex { color: #BB6688 }
+.code .literal.string.symbol { color: #B8860B }
+.code .name.attribute { color: #BB4444 }
+.code .name.builtin { color: #AA22FF }
+.code .name.class { color: #0000FF }
+.code .name.constant { color: #880000 }
+.code .name.decorator { color: #AA22FF }
+.code .name.entity { color: #999999; font-weight: bold }
+.code .name.exception { color: #D2413A; font-weight: bold }
+.code .name.function { color: #00A000 }
+.code .name.label { color: #A0A000 }
+.code .name.namespace { color: #0000FF; font-weight: bold }
+.code .name.tag { color: #008000; font-weight: bold }
+.code .name.variable { color: #B8860B }
+.code .operator { color: #666666 }
+.code .operator.word { color: #AA22FF; font-weight: bold }
diff --git a/bin/rst2html b/bin/rst2html
index 511ac6d..4457ddf 100755
--- a/bin/rst2html
+++ b/bin/rst2html
@@ -1,3 +1,5 @@
#!/bin/sh
-exec rst2html.py --stylesheet-path /usr/share/doc/docutils-*/html/html4css1.css --embed-stylesheet "$@"
+thisdir="$(realpath "$(dirname "$0")")"
+
+exec rst2html.py --stylesheet-path=html4css1.css,"$thisdir/pygments-default.css" --embed-stylesheet "$@"