darkrc/bin/find-git-project

8 lines
203 B
Bash
Executable file

#!/bin/sh
root=$1
shift 1
if [ -n "$*" ]
then find $root -type d -name .git | xargs -L 1 dirname | fzf --reverse -1 -q "$*"
else find $root -type d -name .git | xargs -L 1 dirname | fzf --reverse -1
fi