Skip to content

Instantly share code, notes, and snippets.

View rouge8's full-sized avatar

Andy Freeland rouge8

View GitHub Profile
@rouge8
rouge8 / git-status-prompt.sh
Created December 30, 2020 19:40
git status prompt in zig vs bash
#!/bin/bash
# Format 'git status' output for use in my prompt
set -eu
untracked=""
modified=""
for line in $(command git status --porcelain=v1 2> /dev/null | command cut -c-2); do
if [[ $line == ?? ]]; then