configfiles/vim/.vim/findgitroot.sh
2016-11-18 19:34:08 +01:00

10 lines
119 B
Bash
Executable file

#!/bin/bash
while true; do
[[ "$(pwd)" == "/" ]] && exit 1
[[ -d "./.git" ]] && break
cd ..
done
exec $@