{% macro funchighlight(func) -%} {% highlight 'zsh',lineno='table' %} function {{ func.name|quote }} () { {{ func.value|indent(first=True) }} } {% endhighlight %} {% endmacro %} {% macro printalias(alias) -%} {% if alias.type == 'git' %}
{{ data.aliases|selectattr('private', 'eq', False)|selectattr('type', 'eq', 'alias')|list|length }} aliases,
{{ data.aliases|selectattr('private', 'eq', False)|selectattr('type', 'eq', 'git')|list|length }} git aliases,
{{ data.aliases|selectattr('private', 'eq', False)|selectattr('type', 'eq', 'function')|list|length }} functions
last updated: {{ timestamp }}
This page holds a collection of shell aliases and functions I use regularly. I will soon write a sync script to automatically update my alias collection on every computer I use to turn this into an over-engineered alias management system.
This is generated using jinja2 from a YAML file of mine. Note that some aliases might have a strange escaping because I escape them using Python's shlex module.