dotfiles/modules/shell/fish/functions/uncommitted.fish

10 lines
311 B
Fish
Raw Normal View History

echo "Searching git repos..." >&2
find "$HOME/dev" -type d -name '.git' | while read dir
set fullPath (dirname "$dir")
set relativePath (echo "$fullPath" | cut -d'/' -f5-)
if test -n (echo (git -C "$fullPath" status -s))
echo "$relativePath"
git -C "$fullPath" status -s
2022-04-30 14:21:43 +00:00
end
2021-11-16 12:49:59 +00:00
end