#!/bin/sh out=$(git branch --show-current 2>/dev/null) if [ -z "$out" ] ; then out="" else out="($out) " fi echo -n "$out"