Files
blomarchy/bin/blob-theme-extras
T

18 lines
494 B
Bash
Executable File

#!/bin/bash
# blob:summary=List the user-installed themes that came from a git clone
# blob:examples=blob theme extras
# Exits nonzero when there are none, so a caller can ask whether any exist
# without reading the list. A symlinked theme is someone's working copy and a
# `.git` file is a worktree pointing elsewhere; neither is ours to pull.
status=1
for theme in ~/.config/blob/themes/*; do
[[ ! -L $theme && -d $theme/.git ]] || continue
echo "$theme"
status=0
done
exit $status