ogl() {grep $1 *.log(.om[1]) }

PTR() {echo $1 > ~/PTR}

b() {
    echo $1 > ~/PTR
    svn cp ^/trunk ^/ptr/$1 -m "Created branch"
}

ptr() {
    if [ $# -eq 0 ]; then
        PTR=`cat ~/PTR`;
    else
        PTR=$1;
    fi
    tmp=`sinfo -p "ptr/$PTR"`;
    svn switch $tmp
}

trunk() {
    tmp=`sinfo -p trunk`;
    svn switch $tmp
}

db2a() {
    if [ $# -gt 0 ]; then
        java -jar /work/brent/docbook2asciidoc/saxon9he.jar -s $1.docbook -o $1.asc /work/brent/docbook2asciidoc/d2a.xsl
    else
        echo "Docbook file must be provided"
    fi
}

server() {
    if [ $# -eq 0 ]; then
        PORT=8000;
    else
        PORT=$1;
    fi
    open "http://localhost:${PORT}" && python -m SimpleHTTPServer $PORT
}
ogl() {grep $1 *.log(.om[1]) }

PTR() {echo $1 > ~/PTR}

b() {
    echo $1 > ~/PTR
    svn cp ^/trunk ^/ptr/$1 -m "Created branch"
}

ptr() {
    if [ $# -eq 0 ]; then
        PTR=`cat ~/PTR`;
    else
        PTR=$1;
    fi
    tmp=`sinfo -p "ptr/$PTR"`;
    svn switch $tmp
}

trunk() {
    tmp=`sinfo -p trunk`;
    svn switch $tmp
}

db2a() {
    if [ $# -gt 0 ]; then
        java -jar /work/brent/docbook2asciidoc/saxon9he.jar -s $1.docbook -o $1.asc /work/brent/docbook2asciidoc/d2a.xsl
    else
        echo "Docbook file must be provided"
    fi
}

server() {
    if [ $# -eq 0 ]; then
        PORT=8000;
    else
        PORT=$1;
    fi
    open "http://localhost:${PORT}" && python -m SimpleHTTPServer $PORT
}

dockerImages() {
    if [ $# -eq 1 ]; then
        docker images | grep  "$1" | awk '{print $1 ":" $2}';
    else
        docker images | awk '{print $1 ":" $2}';
    fi
}

Add dockerImages custom zsh function
Add dockerImages custom zsh function

When invoked without any arguments dockerImages will display all
images as imageName:tagName.

When invoked with an optional argument dockerImages will display
images matched by grep on the provided string along with the
tagName.
