darkrc/bin/find-git-project

9 lines
173 B
Text
Raw Normal View History

2023-05-17 14:01:17 +00:00
#!/bin/sh
root=$1
shift 1
if [ -n "$*" ]
then find $root -type d -name .git | xargs dirname | fzf -1 -q "$*"
else find $root -type d -name .git | xargs dirname | fzf -1
fi