diff --git a/content/posts/xonsh-pipenv-shell-hack.md b/content/posts/xonsh-pipenv-shell-hack.md index 904275f..c31478f 100644 --- a/content/posts/xonsh-pipenv-shell-hack.md +++ b/content/posts/xonsh-pipenv-shell-hack.md @@ -7,7 +7,7 @@ Ich benutze nun schon ein paar Monate [pipenv](http://pipenv.readthedocs.io/en/l So schön so gut. Meine Shells sind mal wieder in heavy rotation und so bin ich von `zsh` zu `fish` wieder bei [xonsh](http://xon.sh) gelandet. Mir liegt einfach Python. Das Problem mit `pipenv` ist nun das, dass Kommando `pipenv shell` nicht mehr funktioniert. Das aktivieren von `virtualenvs` scheint vor allem für die klassischen Shells konzipiert zu sein. `xonsh` benutzt seine eigene Verwaltung für die virtuellen Umgebungen: [vox](http://xon.sh/python_virtual_environments.html). Da alles andere zu funktionieren scheint, habe ich mir einfach einen Alias geschrieben, der auf der offiziellen `pipenv`-Funktion zum finden von virtuellen Umgebungen beruht. - #!python + :::python def _pipenv_shell(args, stdin=None): import base64 import hashlib diff --git a/themes/walden/static/css/pygment.css b/themes/walden/static/css/pygment.css new file mode 100644 index 0000000..b609e77 --- /dev/null +++ b/themes/walden/static/css/pygment.css @@ -0,0 +1,77 @@ +.highlight .hll { background-color: #ffffcc } +.highlight { background: #002b36; color: #839496 } +.highlight .c { color: #586e75; font-style: italic } /* Comment */ +.highlight .err { color: #dc322f } /* Error */ +.highlight .g { color: #839496 } /* Generic */ +.highlight .k { color: #859900 } /* Keyword */ +.highlight .l { color: #839496 } /* Literal */ +.highlight .n { color: #93a1a1 } /* Name */ +.highlight .o { color: #839496 } /* Operator */ +.highlight .x { color: #839496 } /* Other */ +.highlight .p { color: #839496 } /* Punctuation */ +.highlight .ch { color: #586e75; font-style: italic } /* Comment.Hashbang */ +.highlight .cm { color: #586e75; font-style: italic } /* Comment.Multiline */ +.highlight .cp { color: #586e75; font-style: italic } /* Comment.Preproc */ +.highlight .cpf { color: #586e75; font-style: italic } /* Comment.PreprocFile */ +.highlight .c1 { color: #586e75; font-style: italic } /* Comment.Single */ +.highlight .cs { color: #586e75; font-style: italic } /* Comment.Special */ +.highlight .gd { color: #839496 } /* Generic.Deleted */ +.highlight .ge { color: #839496 } /* Generic.Emph */ +.highlight .gr { color: #839496 } /* Generic.Error */ +.highlight .gh { color: #839496 } /* Generic.Heading */ +.highlight .gi { color: #839496 } /* Generic.Inserted */ +.highlight .go { color: #839496 } /* Generic.Output */ +.highlight .gp { color: #839496 } /* Generic.Prompt */ +.highlight .gs { color: #839496 } /* Generic.Strong */ +.highlight .gu { color: #839496 } /* Generic.Subheading */ +.highlight .gt { color: #839496 } /* Generic.Traceback */ +.highlight .kc { color: #859900 } /* Keyword.Constant */ +.highlight .kd { color: #859900 } /* Keyword.Declaration */ +.highlight .kn { color: #cb4b16 } /* Keyword.Namespace */ +.highlight .kp { color: #cb4b16 } /* Keyword.Pseudo */ +.highlight .kr { color: #859900 } /* Keyword.Reserved */ +.highlight .kt { color: #859900 } /* Keyword.Type */ +.highlight .ld { color: #839496 } /* Literal.Date */ +.highlight .m { color: #2aa198 } /* Literal.Number */ +.highlight .s { color: #2aa198 } /* Literal.String */ +.highlight .na { color: #839496 } /* Name.Attribute */ +.highlight .nb { color: #268bd2 } /* Name.Builtin */ +.highlight .nc { color: #268bd2 } /* Name.Class */ +.highlight .no { color: #b58900 } /* Name.Constant */ +.highlight .nd { color: #cb4b16 } /* Name.Decorator */ +.highlight .ni { color: #cb4b16 } /* Name.Entity */ +.highlight .ne { color: #cb4b16 } /* Name.Exception */ +.highlight .nf { color: #268bd2 } /* Name.Function */ +.highlight .nl { color: #839496 } /* Name.Label */ +.highlight .nn { color: #b58900 } /* Name.Namespace */ +.highlight .nx { color: #839496 } /* Name.Other */ +.highlight .py { color: #268bd2 } /* Name.Property */ +.highlight .nt { color: #859900 } /* Name.Tag */ +.highlight .nv { color: #cb4b16 } /* Name.Variable */ +.highlight .ow { color: #859900 } /* Operator.Word */ +.highlight .w { color: #002b36 } /* Text.Whitespace */ +.highlight .mb { color: #2aa198 } /* Literal.Number.Bin */ +.highlight .mf { color: #2aa198 } /* Literal.Number.Float */ +.highlight .mh { color: #2aa198 } /* Literal.Number.Hex */ +.highlight .mi { color: #2aa198 } /* Literal.Number.Integer */ +.highlight .mo { color: #2aa198 } /* Literal.Number.Oct */ +.highlight .sa { color: #2aa198 } /* Literal.String.Affix */ +.highlight .sb { color: #2aa198 } /* Literal.String.Backtick */ +.highlight .sc { color: #2aa198 } /* Literal.String.Char */ +.highlight .dl { color: #2aa198 } /* Literal.String.Delimiter */ +.highlight .sd { color: #2aa198 } /* Literal.String.Doc */ +.highlight .s2 { color: #2aa198 } /* Literal.String.Double */ +.highlight .se { color: #cb4b16 } /* Literal.String.Escape */ +.highlight .sh { color: #2aa198 } /* Literal.String.Heredoc */ +.highlight .si { color: #cb4b16 } /* Literal.String.Interpol */ +.highlight .sx { color: #2aa198 } /* Literal.String.Other */ +.highlight .sr { color: #2aa198 } /* Literal.String.Regex */ +.highlight .s1 { color: #2aa198 } /* Literal.String.Single */ +.highlight .ss { color: #2aa198 } /* Literal.String.Symbol */ +.highlight .bp { color: #268bd2; font-weight: bold } /* Name.Builtin.Pseudo */ +.highlight .fm { color: #268bd2 } /* Name.Function.Magic */ +.highlight .vc { color: #268bd2 } /* Name.Variable.Class */ +.highlight .vg { color: #268bd2 } /* Name.Variable.Global */ +.highlight .vi { color: #268bd2 } /* Name.Variable.Instance */ +.highlight .vm { color: #cb4b16 } /* Name.Variable.Magic */ +.highlight .il { color: #2aa198 } /* Literal.Number.Integer.Long */ diff --git a/themes/walden/templates/base.html b/themes/walden/templates/base.html index 93e6568..c980977 100644 --- a/themes/walden/templates/base.html +++ b/themes/walden/templates/base.html @@ -10,6 +10,7 @@ + {% if CUSTOM_CSS %} diff --git a/writing_env/root/home/blog/playbooks/writing_env.yml b/writing_env/root/home/blog/playbooks/writing_env.yml index b0143e8..a3d1b5a 100644 --- a/writing_env/root/home/blog/playbooks/writing_env.yml +++ b/writing_env/root/home/blog/playbooks/writing_env.yml @@ -52,6 +52,7 @@ - jinja2-slug - markdown - pelican==3.7.1 + - pygments-style-solarized - typogrify - tzlocal - virtualenv