darkrc/bin/find_git_project

9 lines
171 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 -q "$*"
else find $root -type d -name .git | xargs dirname | fzf
fi