darkrc/bin/find-git-project

9 lines
167 B
Text
Raw Normal View History

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